goto: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 23: Line 23:


Define the label with '''#'''.
Define the label with '''#'''.
Note that loops should always have a time delay.
[[Triggers]] poll every 0.5 seconds so you rarely need a loop faster than that.


'''Example:'''
'''Example:'''

Revision as of 00:23, 22 May 2006


goto label


Operand types:

label: String

Type of returned value:

Nothing

Description:

In script only: Go to given label.

Note: Be sure to use double quotes around label name in goto.

Define the label with #.

Note that loops should always have a time delay.

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


Example:

goto "Lablename"
.
.
.
#Lablename