RO/killPed: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
Line 1: Line 1:
==Syntax==
==Syntaxă==
<syntaxhighlight lang="lua">bool killPed ( ped thePed, [ ped theKiller = nil, int weapon=255, int bodyPart=255, bool stealth = false ] )</syntaxhighlight>
<syntaxhighlight lang="lua">bool killPed ( ped thePed, [ ped theKiller = nil, int armă=255, int parte a corpului=255, bool stealth = false ] )</syntaxhighlight>


===Required Arguments===
===Argumente necesare===
* '''thePed:''' The [[ped]] to kill
* '''thePed:''' Bot-ul [[ped]] care dorești să îl omori


===Optional Arguments===
===Argumente opționale===
* '''theKiller:''' The ped responsible for the kill
* '''theKiller:''' Bot-ul responsabil pentru ucidere
* '''weapon:''' The ID of the weapon that should appear to have killed the ped (doesn't affect how they die)
* '''weapon:''' ID-ul armei care apare că a omorât bot-ul (nu afectează cum moare)
* '''bodyPart:''' The ID of the body part that should appear to have been hit by the weapon (doesn't affect how they die)
* '''bodyPart:''' ID-ul părții coprului care apare ca fiind lovită de armă (nu afectează cum moare)
{{BodyParts}}
{{BodyParts}}
* '''stealth:''' Boolean value, representing whether or not this a stealth kill
* '''stealth:''' Boolean value, representing whether or not this a stealth kill

Revision as of 12:33, 29 October 2013

Syntaxă

bool killPed ( ped thePed, [ ped theKiller = nil, int armă=255, int parte a corpului=255, bool stealth = false ] )

Argumente necesare

  • thePed: Bot-ul ped care dorești să îl omori

Argumente opționale

  • theKiller: Bot-ul responsabil pentru ucidere
  • weapon: ID-ul armei care apare că a omorât bot-ul (nu afectează cum moare)
  • bodyPart: ID-ul părții coprului care apare ca fiind lovită de armă (nu afectează cum moare)
  • 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.