TOnDamageEvent

From Soldat Community Wiki
Revision as of 00:38, 27 October 2014 by ExHunter (talk | contribs) (Declaration)
Jump to: navigation, search

Description

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

Declaration

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)
 Bullet: TActiveMapBullet object that dealt the damage