Label

From the Fallout3 GECK Wiki
Revision as of 06:18, 24 June 2014 by imported>Odessa (fixed link, added example)
(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

Defines a labeled position in a script which subsequent calls to Goto can use to create loops. The label must be defined before Goto is called.

Syntax

[help]
Label labelID:int

Example

int GetNextActor ; * or some appropriate name
set GetNextActor to 1
Label GetNextActor

Notes

  • There are 256 available slots for Labels, enabling IDs from 0 to 255 inclusively. Values outside of this range will not work.
  • If using NVSE since version 4, label/goto should be replaced by While or Foreach in all but exceptional cases, as this is more powerful, readable and reliable.

See Also