Difference between revisions of "0001"

From GTAMods Wiki
Jump to navigation Jump to search
Line 1: Line 1:
<code>0001=1,%1d%</code><br>
+
{{OpCode
'''Description''': Stops execution of thread<br>
+
| ini        = 0001=1,%1d%
'''Parameter 1''': Time to wait (in milliseconds)<br>
+
| description = Stops the execution of a [[thread]]
'''Supports''': GTA3, Vice City, San Andreas<br>
+
| p1          = Time to wait (in milliseconds)
 
+
| game        = GTA3, Vice City, San Andreas
This opcode stops an execution of the thread for specified amount of time in ms. A parameter value of 0 (wait 0 ms) means that the thread will regain focus as soon as possible, whereas values greater than 0 denote the minimum time span that has to go by before the thread is revisited.
+
}}
 +
This opcode stops an execution of the thread for specified amount of time in ms. In both the [[Mission Builder]] and [[Sanny Builder]], you can type '''wait''' instead. A parameter value of 0 (wait 0 ms) means that the thread will regain focus as soon as possible, whereas values greater than 0 denote the minimum time span that has to go by before the thread is revisited. A wait is required for almost all [[Create a thread#Loops|loops]].
  
 
==Keywords==
 
==Keywords==
 
wait, thread
 
wait, thread
 
[[Category:OpCodes]]
 

Revision as of 07:36, 17 August 2009

{{{games}}}


Description
Stops the execution of a thread
Syntax
{{{syntax1}}}
Parameter

This opcode stops an execution of the thread for specified amount of time in ms. In both the Mission Builder and Sanny Builder, you can type wait instead. A parameter value of 0 (wait 0 ms) means that the thread will regain focus as soon as possible, whereas values greater than 0 denote the minimum time span that has to go by before the thread is revisited. A wait is required for almost all loops.

Keywords

wait, thread