Page MenuHomeFeedback Tracker

Accidental doublepost, please delete this one.
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.

Details

Legacy ID
659639056
Severity
None
Resolution
Duplicate
Reproducibility
Always
Category
Scripting
Steps To Reproduce

See mission.sqm 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, 3:59 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 Duplicate.
NeMeSiS set Legacy ID to 659639056.May 7 2016, 3:23 PM
Ceh added a subscriber: Ceh.May 7 2016, 3:23 PM
Ceh added a comment.Aug 7 2013, 10:36 PM

as per request