Перейти к содержанию

System::wait

Материал из RAGE MP Wiki Archive
Версия от 21:32, 6 мая 2017; imported>Marty uploader (yay)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

Pauses execution of the current script, please note this behavior is only seen when called from one of the game script files(ysc). In order to wait an asi script use
static void WAIT(DWORD time);
found in main.h

--------------------------------------------------------------------
It does not actually seem to wait the amount of milliseconds stated like the normal WAIT() command does, but it does seem to make task sequences work more smoothly

System native hashes do not change on gameupdate

Syntax

<syntaxhighlight lang="javascript">mp.game.system.wait(ms);</syntaxhighlight>

Required Arguments

  • ms: int

Return value

  • Undefined

Example

<syntaxhighlight lang="javascript"> // todo </syntaxhighlight>

See also

Шаблон:System s function c