gosub

From Arx Libertatis Wiki
Jump to navigation Jump to search

The gosub script command is used to jump to a label and add a return point. Unlike goto, gosub will push the location of the command following it on the stack of return positions.

Usage

gosub <label>

Context: Ignored

Parameters:

ParameterTypeDescription
label label The name of the label to jump to