Difference between revisions of "TOnDamageEvent"
(→Declaration) |
(→Declaration) |
||
Line 8: | Line 8: | ||
Victim: player recieving damage | Victim: player recieving damage | ||
Damage: amount of damage (negative values heal the target) | Damage: amount of damage (negative values heal the target) | ||
− | BulletId: [[TActiveMapBullet.ID | + | BulletId: [[TActiveMapBullet]].ID object that dealt the damage (if it's not been a bullet, then this parameter will result in a 255, which is not a valid BulletId |
[[Category:Types]] | [[Category:Types]] |
Revision as of 23:39, 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) BulletId: TActiveMapBullet.ID object that dealt the damage (if it's not been a bullet, then this parameter will result in a 255, which is not a valid BulletId