Page MenuHomeFeedback Tracker

commands removeMagazines and removeMagazine do not remove magazines from weapons
Closed, ResolvedPublic

Description

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

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

d3nn16 edited Steps To Reproduce. (Show Details)Mar 9 2013, 7:22 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 Not A Bug.
d3nn16 set Legacy ID to 2289933038.May 7 2016, 12:00 PM
Hanz added a subscriber: Hanz.May 7 2016, 12:00 PM
Hanz added a comment.May 24 2013, 10:18 AM

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)."