OnPlayerDamage

From Soldat Community Wiki
Revision as of 11:45, 15 August 2012 by Freeman (talk | contribs) (Created page with "===From the Scripting Manual=== ''function OnPlayerDamage(Victim, Shooter: byte; Damage: integer): integer;'' '''Parameter Info:''' Victim (Byte): Player ID of the p...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

From the Scripting Manual

 function OnPlayerDamage(Victim, Shooter: byte; Damage: integer): integer;
 
 Parameter Info:
  Victim (Byte): Player ID of the player being damaged.
  Shooter (Byte): Player ID of the player who is doing damage
  Damage (Integer): Amount of damage being done.
 
 Description:
  This procedure will be called every time a playe loses health, you can also change the amount of damage being done by changing the result value.

External Links