Difference between revisions of "TOnDamageEvent"

From Soldat Community Wiki
Jump to: navigation, search
m (Declaration)
m (2.7.8.b1 declaration change)
Line 3: Line 3:
  
 
==Declaration==
 
==Declaration==
{{expand|links to bullet class when it's done}}
 
  
  function (Shooter, Victim: [[TActivePlayer]]; Damage: Integer; BulletID: Byte): Integer
+
  function (Shooter, Victim: [[TActivePlayer]]; Damage: Integer; Bullet: [[TActiveMapBullet]]): Integer
 
   Shooter: player dealing damage
 
   Shooter: player dealing damage
 
   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: ID of a bullet that hit Victim
+
   Bullet: [[TActiveMapBullet]] object that dealt the damage
  
 
[[Category:Types]]
 
[[Category:Types]]

Revision as of 10:39, 4 October 2014

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