TOnDamageEvent

From Soldat Community Wiki
Revision as of 11:42, 9 September 2016 by Mighty (talk | contribs)
(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: Single; Bullet: TActiveMapBullet): Single
 Shooter: player dealing damage
 Victim: player recieving damage
 Damage: amount of damage that is supposed to be dealt
 Bullet: TActiveMapBullet object that dealt the damage
 Result: amount of damage being actually dealt
Needs testing (What if not a bullet killed a player?)