OnPedWasted: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created OnPedWasted server side page)
 
m (added code tag start to syntax)
Line 4: Line 4:


==Parameters==
==Parameters==
int totalAmmo, element killer, int killerWeapon, int bodypart [, bool stealth ]
<syntaxhighlight lang="lua">int totalAmmo, element killer, int killerWeapon, int bodypart [, bool stealth ]
</syntaxhighlight>
</syntaxhighlight>



Revision as of 13:30, 16 May 2009

This event is triggered when a ped is killed or dies.

Parameters

int totalAmmo, element killer, int killerWeapon, int bodypart [, bool stealth ]
  • totalAmmo: an integer representing the total ammo the victim had when he died.
  • killer: an element representing the player or vehicle who was the killer. If there was no killer this is false.
  • killerWeapon: an integer representing the weapon the killer used to kill the player.
  • bodypart: an integer representing the bodypart ID the victim was hit on when he died.
  • 3: Torso
  • 4: Ass
  • 5: Left Arm
  • 6: Right Arm
  • 7: Left Leg
  • 8: Right Leg
  • 9: Head
  • stealth: boolean value representing whether or not this was a stealth kill

Source

The source of this event is the ped that died or got killed.