RO/killPed: Difference between revisions
Jump to navigation
Jump to search
(Created page with "==Синтакс== <syntaxhighlight lang="lua">bool killPed ( ped thePed, [ ped theKiller = nil, int weapon=255, int bodyPart=255, bool stealth ] )</syntaxhighlight> ===Обязательные аргу...") |
|||
Line 1: | Line 1: | ||
== | ==Syntax== | ||
<syntaxhighlight lang="lua">bool killPed ( ped thePed, [ ped theKiller = nil, int weapon=255, int bodyPart=255, bool stealth ] )</syntaxhighlight> | <syntaxhighlight lang="lua">bool killPed ( ped thePed, [ ped theKiller = nil, int weapon=255, int bodyPart=255, bool stealth = false ] )</syntaxhighlight> | ||
=== | ===Required Arguments=== | ||
* '''thePed:''' [[ | * '''thePed:''' The [[ped]] to kill | ||
=== | ===Optional Arguments=== | ||
* '''theKiller:''' | * '''theKiller:''' The ped responsible for the kill | ||
* '''weapon:''' ID | * '''weapon:''' The ID of the weapon that should appear to have killed the ped (doesn't affect how they die) | ||
* '''bodyPart:''' ID | * '''bodyPart:''' The ID of the body part that should appear to have been hit by the weapon (doesn't affect how they die) | ||
{{BodyParts}} | {{BodyParts}} | ||
* '''stealth:''' | * '''stealth:''' Boolean value, representing whether or not this a stealth kill | ||
=== | ===Returns=== | ||
Returns ''true'' if the ped was killed, ''false'' if the ped specified could not be killed or is invalid. |
Revision as of 12:31, 29 October 2013
Syntax
bool killPed ( ped thePed, [ ped theKiller = nil, int weapon=255, int bodyPart=255, bool stealth = false ] )
Required Arguments
- thePed: The ped to kill
Optional Arguments
- theKiller: The ped responsible for the kill
- weapon: The ID of the weapon that should appear to have killed the ped (doesn't affect how they die)
- bodyPart: The ID of the body part that should appear to have been hit by the weapon (doesn't affect how they die)
- 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 a stealth kill
Returns
Returns true if the ped was killed, false if the ped specified could not be killed or is invalid.