Page MenuHomeFeedback Tracker

dropWeapon action severly broken
Closed, ResolvedPublic

Description

The dropWeapon action does nothing except playing an animation when trying to make an AI unit drop his weapon to the ground, and crashes the game when trying to put the weapon in an ammobox. {F20744}

Details

Legacy ID
1347844998
Severity
None
Resolution
Open
Reproducibility
Always
Category
Scripting
Steps To Reproduce

See mission attachment below, or try by hand:
Give a unit a weapon and a name:
removeAllWeapons this; this addWeapon "SMG_01_F";

Make him drop his weapon:
unitname action ["DropWeapon", unitname, "SMG_01_F"];

Make him drop his weapon in an ammobox to crash the game:
unitname action ["DropWeapon", ammoboxname, "SMG_01_F"];

Event Timeline

NeMeSiS edited Steps To Reproduce. (Show Details)Jul 9 2013, 4:00 PM
NeMeSiS edited Additional Information. (Show Details)
NeMeSiS set Category to Scripting.
NeMeSiS set Reproducibility to Always.
NeMeSiS set Severity to None.
NeMeSiS set Resolution to Open.
NeMeSiS set Legacy ID to 1347844998.May 7 2016, 3:23 PM
Bohemia added a subscriber: NeMeSiS.Jul 9 2013, 4:00 PM
MadDogX added a subscriber: MadDogX.May 7 2016, 3:23 PM

Mass closing ancient tickets with no activity for > 12 months; assume fixed or too trivial.

If this issue is still relevant in current dev build, please re-post.