Difference between revisions of "Label"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Cipscis
(→‎See Also: Added external link to "Loops" article on cipscis.com)
imported>Cipscis
(→‎External Links: Moved link to cipscis.com to new section; added link to FOSE documentation)
Line 30: Line 30:
==See Also==
==See Also==
*[[GoTo]]
*[[GoTo]]
==External Links==
*[http://www.cipscis.com/fallout/tutorials/loops.aspx Loops]
*[http://www.cipscis.com/fallout/tutorials/loops.aspx Loops]
*[http://fose.silverlock.org/fose_command_doc.html#Label FOSE Documentation]


[[Category:Functions]]
[[Category:Functions]]
[[Category:Functions (FOSE)]]
[[Category:Functions (FOSE)]]

Revision as of 18:17, 11 October 2009

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

A function added by the Fallout Script Extender.

Description

Creates a label in a script, allowing this location to be referred to by the GoTo function.

Syntax

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

Example

Label 1

Notes

The Label/GoTo Loop

This function can be used to create a loop when combined with GoTo. 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

External Links