Difference between revisions of "TOnKillEvent"

From Soldat Community Wiki
Jump to: navigation, search
m (Declaration)
m (Declaration: 2.7.8.b1 declaration change)
Line 5: Line 5:
 
{{expand|links to Bullet object when it's done}}
 
{{expand|links to Bullet object when it's done}}
  
  function (Killer, Victim: [[TActivePlayer]]; BulletID: Byte): Integer
+
  function (Killer, Victim: [[TActivePlayer]]; Bullet: [[TActiveMapBullet]]): Integer
 
   Killer: player killing
 
   Killer: player killing
 
   Victim: player being killed
 
   Victim: player being killed
   BulletID: ID of a bullet that killed Victim
+
   Bullet: [[TActiveMapBullet]] object that killed Victim
  
 
[[Category:Types]]
 
[[Category:Types]]

Revision as of 10:46, 4 October 2014

Description

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

Declaration

Expand with: links to Bullet object when it's done
function (Killer, Victim: TActivePlayer; Bullet: TActiveMapBullet): Integer
 Killer: player killing
 Victim: player being killed
 Bullet: TActiveMapBullet object that killed Victim