Difference between revisions of "TOnKillEvent"

From Soldat Community Wiki
Jump to: navigation, search
(Created page with "==Description== Type used by TActivePlayer.OnKill as an event handler type. ==Declaration== function (Killer, Victim: TActivePlayer; WeaponType: Byte): Integer Kil...")
 
m
Line 3: Line 3:
  
 
==Declaration==
 
==Declaration==
  function (Killer, Victim: [[TActivePlayer]]; WeaponType: Byte): Integer
+
{expand|links to Bullet object when it's done}
 +
 
 +
  function (Killer, Victim: [[TActivePlayer]]; BulletID: Byte): Integer
 
   Killer: player killing
 
   Killer: player killing
 
   Victim: player being killed
 
   Victim: player being killed
   WeaponType: type of the weapon that dealt the killing blow
+
   BulletID: ID of a bullet that killed Victim
  
 
[[Category:Types]]
 
[[Category:Types]]

Revision as of 13:28, 9 August 2013

Description

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

Declaration

{expand|links to Bullet object when it's done}

function (Killer, Victim: TActivePlayer; BulletID: Byte): Integer
 Killer: player killing
 Victim: player being killed
 BulletID: ID of a bullet that killed Victim