Difference between revisions of "TOnDamageEvent"
m (2.7.8.b1 declaration change) |
(→Declaration) |
||
Line 4: | Line 4: | ||
==Declaration== | ==Declaration== | ||
− | function (Shooter, Victim: [[TActivePlayer]]; Damage: Integer; | + | function (Shooter, Victim: [[TActivePlayer]]; Damage: Integer; BulletId: Byte): Integer |
Shooter: player dealing damage | Shooter: player dealing damage | ||
Victim: player recieving damage | Victim: player recieving damage |
Revision as of 23:38, 26 October 2014
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