# goto

Script
5.1 OC
void
int counter New value for the script counter. The next scenario script function called will be ScriptXXX.
Sets the script counter for scenario scripts to the specified value. The script counter is responsible for calling the ScriptXXX functions in a scenario script. This does not apply to object scripts - those should be using TimerCall or ActMaps with StartCall/PhaseCall/EndCall.
func Initialize() { // Start script counter ScriptGo(1); }

func Script10() { // Create firestones CastObjects(Firestone,10,200, Random(LandscapeWidth()), 20); goto(0); }
A scenario script: a typical flint rain. Every 100 Frames 10 flints are created.
ScriptGo
ScriptCounter
jwk
2002-04