Label

From the Fallout3 GECK Wiki
Revision as of 11:06, 3 August 2009 by imported>Omzy (new fose function)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
< [[::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

Example

Label 1337

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:

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

See Also