OnPedWasted: Difference between revisions
Jump to navigation
Jump to search
(added info about death reasons) |
|||
Line 9: | Line 9: | ||
*'''totalAmmo''': an integer representing the total ammo the victim had when he died. | *'''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''. | *'''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 | *'''killerWeapon''': an integer representing the [[Weapons|killer weapon]] or the [[Death Reasons|death reason]]. | ||
*'''bodypart''': an integer representing the bodypart ID the victim was hit on when he died. | *'''bodypart''': an integer representing the bodypart ID the victim was hit on when he died. | ||
{{BodyParts}} | {{BodyParts}} |
Revision as of 16:00, 23 January 2011
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 killer weapon or the death reason.
- 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.
Example
-- TODO
See Also