RO/killPed: Difference between revisions

From Multi Theft Auto: Wiki
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:''' [[Ped]], которого вы хототе убить.
* '''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:''' Логическое значение, устанавливающее был ли пед убит скрытно. ('''From 1.0''')
* '''stealth:''' Boolean value, representing whether or not this a stealth kill


===Возвращения===
===Returns===
Возвращает ''true'' если пед убит, ''false'' если пед не убит или указан несуществующий пед.
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.