When running (vehicle player) setVehicleAmmoDef 1; in a debug console it switches the current weapon to the default weapon.
setVehicleAmmoDef should not switch the vehicle's weapon.
Description
Description
Details
Details
- Legacy ID
- 1430943922
- Severity
- None
- Resolution
- Open
- Reproducibility
- Always
- Category
- Scripting
Steps To Reproduce
- Get in a vehicle such as the M4 scorcher as gunner
- Switch the weapon from the default HE rounds to mine cluster rounds
- Run (vehicle player) setVehicleAmmoDef 1; in the debug console
- You will see that weapon was switched back to the HE rounds
Event Timeline
Comment Actions
I have found that if you are in a static AA launcher and you run (vehicle player) setVehicleAmmoDef 1 then it will switch to a blank firemode and you won't be able to fire at all unless you press f to switch to the normal firemode.
The command does restore the ammo to full however (as it should).