System::wait: Difference between revisions
(yay) |
(yay) |
||
| Line 1: | Line 1: | ||
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 <br> static void WAIT(DWORD time);<br>found in main.h <br><br>--------------------------------------------------------------------<br>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<br><br>System native hashes do not change on gameupdate | 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 <br> static void WAIT(DWORD time);<br>found in main.h <br><br>--------------------------------------------------------------------<br>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<br><br>System native hashes do not change on gameupdate | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="javascript">system.wait(ms);</syntaxhighlight> | <syntaxhighlight lang="javascript">mp.game.system.wait(ms);</syntaxhighlight> | ||
=== Required Arguments === | === Required Arguments === | ||
*'''ms:''' int | *'''ms:''' int | ||
| Line 8: | Line 8: | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
todo | // todo | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See also== | ==See also== | ||
{{ | {{System_s_function_c}} | ||
[[Category:Clientside API]] | [[Category:Clientside API]] | ||
[[Category:TODO: Example]] | [[Category:TODO: Example]] | ||
Latest revision as of 21:32, 6 May 2017
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
mp.game.system.wait(ms);
Required Arguments
- ms: int
Return value
- Undefined
Example
// todo