[Home]0001

HomePage | RecentChanges | Preferences

wait iMilliseconds

Description

Pauses the thread, giving the other threads and the rest of the game engine a chance to run.

Parameters

iMilliseconds
Time to wait for, in milliseconds.

Example

@Loop
  wait 0
  if 0
    is_model_available %hunter
  jf @Loop

Comments

A loop that relies on the game engine doing something before it will end (such as loading a model in the example above), will freeze the game if it does not contain a wait.

After wait, local variable !13 will be reset to the global timer.


CategoryStructuralOpcodes

HomePage | RecentChanges | Preferences
This page is read-only | View other revisions
Last edited October 16, 2004 1:04 pm by CyQ (diff)
Search:
SourceForge.net Logo