RU/setPedOnFire: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with '__NOTOC__ {{RU/Server client function}} {{translate}} Эта функция позволяет поджечь или потушить педа. ==Syntax== <syntaxhighlight lang="lua"> bool se…')
 
No edit summary
Line 4: Line 4:
Эта функция позволяет поджечь или потушить педа.
Эта функция позволяет поджечь или потушить педа.


==Syntax==  
==Ситакс==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
bool setPedOnFire ( ped thePed, bool isOnFire )
bool setPedOnFire ( ped thePed, bool isOnFire )
</syntaxhighlight>  
</syntaxhighlight>  


===Required Arguments===  
===Обязательные аргументы===  
*'''thePed:''' The ped that we want to set/unset
*'''thePed:''' Пед, которого вы хотите пожечь\потушить.
*'''isOnFire:''' ''true'' to set the ped on fire, ''false'' to extinguish any fire on him
*'''isOnFire:''' ''true'' чтобы поджечь педа, ''false'' чтобы потушить его.


===Returns===
===Возращения===
Returns ''true'' if successful, ''false'' otherwise
Возвращает ''true'' если операция прошла успешно, ''false'' при неудаче.


==Example==  
==Пример==  
This script will make all current connected players and peds to burn
Этот скрипт поджигает всех подключеных игроков и педов.
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
     setPedOnFire ( getRootElement(), true )
     setPedOnFire ( getRootElement(), true )

Revision as of 18:16, 10 August 2012

Warning.png This page requires local translation. If page will remain not translated in reasonable period of time it would be deleted.
After translating the page completely, please remove the ‎{{translate}}‎ tag from the page.

Эта функция позволяет поджечь или потушить педа.

Ситакс

bool setPedOnFire ( ped thePed, bool isOnFire )

Обязательные аргументы

  • thePed: Пед, которого вы хотите пожечь\потушить.
  • isOnFire: true чтобы поджечь педа, false чтобы потушить его.

Возращения

Возвращает true если операция прошла успешно, false при неудаче.

Пример

Этот скрипт поджигает всех подключеных игроков и педов.

    setPedOnFire ( getRootElement(), true )

Смотрите также