The expected behavior of removeMagazines and removeMagazine commands is to remove all magazines from a unit including the magazine loaded in the weapon itself. This is not the case with Alpha 0.5.102571
Description
Description
Details
Details
- Legacy ID
- 2289933038
- Severity
- Minor
- Resolution
- Not A Bug
- Reproducibility
- Always
- Category
- Scripting
Steps To Reproduce
Edit a mission by adding a Blufor soldier of type Diver then add a trigger that executes: player removemagazines "16Rnd_9x21_Mag". After execution Diver will stil have one magazine left loaded into the handgun.
Event Timeline
Comment Actions
Command "player removemagazines" is only for magazines in inventory. Magazine in primary/secondy weapon is part of the weapon. Use commands "player removeweapon (weapon_name)" and "player addweapon (weapon_name)."