Difference between revisions of "TOnDamageEvent"

From Soldat Community Wiki
Jump to: navigation, search
(Created page with "==Description== Type used by TActivePlayer.OnDamage as an event handler type. ==Declaration== function (Shooter, Victim: TActivePlayer; Damage: Integer; WeaponType: ...")
 
m (Declaration)
Line 3: Line 3:
  
 
==Declaration==
 
==Declaration==
  function (Shooter, Victim: [[TActivePlayer]]; Damage: Integer; WeaponType: Byte): Integer
+
{expand|links to bullet class when it's done}
 +
 
 +
  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
 
   Damage: amount of damage (negative values heal the target)
 
   Damage: amount of damage (negative values heal the target)
   WeaponType: type of the weapon damage is being dealt with
+
   BulletID: ID of a bullet that hit Victim
  
 
[[Category:Types]]
 
[[Category:Types]]

Revision as of 14:29, 9 August 2013

Description

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

Declaration

{expand|links to bullet class when it's done}

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: ID of a bullet that hit Victim