TOnDamageEvent

From Soldat Community Wiki
Revision as of 10:39, 4 October 2014 by Mighty (talk | contribs) (2.7.8.b1 declaration change)
Jump to: navigation, search

Description

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

Declaration

function (Shooter, Victim: TActivePlayer; Damage: Integer; Bullet: TActiveMapBullet): 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