goto: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 32: Line 32:
Define the label with '''#'''.
Define the label with '''#'''.


Note that many loops require a time delay, failure to provide a time delay for some loops will result unexpected consequences..
Note that many loops require a time delay, failure to provide a time delay for some loops will result in unexpected consequences..


[[Triggers]] poll every 0.5 seconds so you rarely need a loop faster than that.
[[Triggers]] poll every 0.5 seconds so you rarely need a loop faster than that.

Revision as of 03:29, 23 May 2006


goto label


Operand types:

label: String

Type of returned value:

Nothing

Description:

In script only: Go to given label.
Note: String argument is used here.
Be sure to use double quotes around label name in goto.


Example:

goto "Loop"


Comments:

Define the label with #.

Note that many loops require a time delay, failure to provide a time delay for some loops will result in unexpected consequences..

Triggers poll every 0.5 seconds so you rarely need a loop faster than that.