OnWeaponChange

From Soldat Community Wiki
Revision as of 21:18, 12 April 2018 by Nosejj (talk | contribs) (From the Scripting Manual)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

From the Scripting Manual

 procedure OnWeaponChange(ID, PrimaryNum, SecondaryNum: byte);
 
 Parameter Info:
  ID (Byte): Player ID of the player who has changed weapons.
  PrimaryNum (Byte): Primary weapon number
  SecondaryNum (Byte): Secondary weapon number
 
 Description:
  This procedure will be called every time a player switches weapons, drops a weapon,
  picks up a weapon, and when they pick a gun from the re-spawn menu.

External Links