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.
Description
Description
Details
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"];