0001

From GTAMods Wiki
Revision as of 03:14, 27 December 2014 by Spaceeinstein (talk | contribs)
Jump to navigation Jump to search

GTA III Vice City San Andreas WAIT


Description

Stops the execution of a thread

Syntax

0001: wait [int] ms
wait [int]

Parameter

[int]
Time to wait in milliseconds

Native analog

WAIT

This opcode stops an execution of the thread for specified amount of time in milliseconds. A value of 0 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.

Example

The following example, using Sanny Builder, shows a simple loop, with the required "wait" opcode.

while true
    wait 0 ms
end

Keywords

wait, thread