Page MenuHomeFeedback Tracker

setVehicleAmmoDef does not work as expected
New, NormalPublic

Description

When I execute "player setVehicleAmmoDef 0" it doesn't remove all magazines from soldier (smokeshell and grenade remain).

When I execute "player setVehicleAmmoDef 1" (after "player setVehicleAmmoDef 0") it has no effect (magazines are not restored back).

I was expecting that all ammunition would be removed from player and that it would also restore all ammunition the soldier starts with. {F18166}

Details

Legacy ID
2003226783
Severity
Minor
Resolution
Open
Reproducibility
Always
Category
Scripting
Steps To Reproduce

Edit a mission, place a soldier, place 2 triggers (radio alpha -> execute player setVehicleAmmoDef 0, bravo -> execute player setVehicleAmmoDef 1).

Additional Information

After more tests I found out there are more problems with this command on a dedicated server.

If "vehicle player setvehicleammodef 0" is executed by player who is driver of Hunter GMG then the player that is gunner will not see the effects of this command (for the gunner the magazines are still there but for driver they were removed by the command). If the gunner gets out of vehicle then back in gunner seat he will still see the magazines.

Event Timeline

d3nn16 edited Steps To Reproduce. (Show Details)Mar 17 2013, 12:40 PM
d3nn16 edited Additional Information. (Show Details)
d3nn16 set Category to Scripting.
d3nn16 set Reproducibility to Always.
d3nn16 set Severity to Minor.
d3nn16 set Resolution to Open.
d3nn16 set Legacy ID to 2003226783.May 7 2016, 12:47 PM

Sounds a lot like setVehicleAmmo command