goto: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|G]]
[[Category:Scripting Commands|GOTO]]
[[Category:Scripting Commands OFP 1.97|G]]
[[Category:Scripting Commands OFP 1.97|GOTO]]
[[Category:Scripting Commands OFP 1.46|G]]
[[Category:Scripting Commands OFP 1.46|GOTO]]
[[Category:Scripting Commands ArmA|G]]
[[Category:Scripting Commands ArmA|GOTO]]





Revision as of 15:05, 4 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 loops should always have a time delay.

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