Difference between revisions of "GoTo"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Cipscis
(Adding value to argument, as was done with Label)
imported>Geckbot
m (Robot: Automated text replacement (-\[\[Category:(.*?)Functions\]\] +Category:\1Functions\nCategory:\1Functions (GECK 1.0)))
Line 32: Line 32:


[[Category:Functions]]
[[Category:Functions]]
[[Category:Functions (GECK 1.0)]]

Revision as of 12:00, 12 August 2009

< [[::Category:Functions|Category:Functions]]

A function added by the Fallout Script Extender.

Description

Continues processing the current script from a previously indicated label ID.

Syntax

[help]
GoTo ID:int{0 to 255}

Example

GoTo 1

Notes

The Label/GoTo Loop

This function can be used to create a loop when combined with Label. The following script loops the script instructions iterations times:

ScriptName LoopScript

int count
int iterations

Begin GameMode
	Label 1
	;Script instructions to loop
	set count to count + 1
	if count < iterations
		GoTo 1
	endif
End

See Also