TOnDamageEvent

From Soldat Community Wiki
Revision as of 13:29, 9 August 2013 by Mighty (talk | contribs) (Declaration)
Jump to: navigation, search

Description

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

Declaration

{expand|links to bullet class when it's done}

function (Shooter, Victim: TActivePlayer; Damage: Integer; BulletID: Byte): Integer
 Shooter: player dealing damage
 Victim: player recieving damage
 Damage: amount of damage (negative values heal the target)
 BulletID: ID of a bullet that hit Victim