TOnDamageEvent

From Soldat Community Wiki
Revision as of 10:54, 31 July 2013 by Mighty (talk | contribs) (Created page with "==Description== Type used by TActivePlayer.OnDamage as an event handler type. ==Declaration== function (Shooter, Victim: TActivePlayer; Damage: Integer; WeaponType: ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Description

Type used by TActivePlayer.OnDamage as an event handler type.

Declaration

function (Shooter, Victim: TActivePlayer; Damage: Integer; WeaponType: Byte): Integer
 Shooter: player dealing damage
 Victim: player recieving damage
 Damage: amount of damage (negative values heal the target)
 WeaponType: type of the weapon damage is being dealt with