Page MenuHomeFeedback Tracker

New command "CurrentGrenade"
Closed, ResolvedPublic

Description

It would be cool to see a new command to get the Classname from the current selected grenade.

I'm working on a custom HUD and at the moment i don't see how i can get the info from the current active grenade to put it in the HUD.

And maybe the command can be useful for other scripts too.

Details

Legacy ID
1464075344
Severity
None
Resolution
Fixed
Reproducibility
N/A
Category
Feature Request

Event Timeline

Lachesis580 edited Additional Information. (Show Details)
Lachesis580 set Category to Feature Request.
Lachesis580 set Reproducibility to N/A.
Lachesis580 set Severity to None.
Lachesis580 set Resolution to Fixed.
Lachesis580 set Legacy ID to 1464075344.May 7 2016, 6:22 PM
Bohemia added a subscriber: AD2001.Apr 9 2014, 12:31 PM

magazinesAmmoFull is what you need

And how i can see which grenade is at the moment active?

this:
"2: Magazine state (true - loaded, false - not loaded)"

can't be used for that because every throw object has "true".
Or did i understand anything wrong?

Oh yeah true :-( Im going to have a look at it later, there might still be a way

Ok I give up finding command that returns anything useable. The only way this could be done is by displaying any grenade you want and when user hit G you can override default button press and instead execute forceWeaponFire with grenade that is displayed.

+1ed

Thanks for your try. :)

I've tried every workaround I can think of and I can't see a way to accomplish this. Please add a dedicated command or fix magazinesAmmoFull so that the magazine loaded state only returns true for the selected throw object.

Added command currentThrowable