DropWeapon

From WinWolf3D/WDC

This tells the engine what script-defined weapon item type to drop when the actor dies. If the player already has the weapon type, the DropItem will be dropped instead. Otherwise, the weapon is dropped and the DropItem is ignored.

Syntax

DropWeapon itemtype

Valid in

Notes

  • The itemtype is not to be confused with the [[Object Classes|object class].
  • The itemtype must be one that has been given the object class of ot_weapon.
  • If there is more than one item of the given weapon item type, the first one defined in script will be dropped.