player_weaponstrip

Modified

12-Jul-2023

Removes all weapons and ammo from player. It's possible to also remove HEV suit.

Keyvalues


OnDestroy Function ondestroyfn : Name of the function to use from already parsed .as script files when entity is destroyed (killed) in any way. If the function belongs to namespace, you must use prefix with the namespace name (e.g. mynamespace::MyFunction) for the keyvalue.

Name targetname : Set name of player_weaponstrip so other entities can trigger it to remove player's weapons. Every trigger use-type works uniformly. Can be kill-targeted.

Players to strip m_iAffected : Allows to change which players will be affected by player_weaponstrip.

  • 0 : Activator only (default) : Strip only !activator of the script e.g. player who pressed a button that targeted this entity.
  • 1 : All players : Strip everyone on map.
  • 2 : All players except activator : Strip everyone except the !activator of the script- e.g. strip everyone except player who pressed a button that targeted this entity.

Flags


  • 1 : Strip suit, too : (Also) remove HEV suit.