Difference between revisions of "Label"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Cipscis
(Changed indentation and lebel ID - I don't think label IDs can go higher than 256)
imported>Omzy
(good eye cipscis, tested to work from 0 to 255)
Line 7: Line 7:
   |Name = ID
   |Name = ID
   |Type = int
   |Type = int
  |Value = 0 to 255
   }}
   }}
  |example = Label 1
  |example = Label 1
Line 12: Line 13:
==Notes==
==Notes==
===The Label/GoTo Loop===
===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:
This function can be used to create a loop when combined with [[GoTo]]. The following script loops the script instructions ''iterations'' times:
  ScriptName LoopScript
  ScriptName LoopScript
   
   

Revision as of 01:19, 4 August 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