en:code:core:script
This is an old revision of the document!
Script
Used to interact with the current script. This object is only available when executing a script, not when executing code using ActExec!
Functions
callProcedure
Calls a procedure from the script. The procedure will be executed when the current action is finished.
[Added in Actionaz 3.8.0.]
Syntax
Script.callProcedure(name);
Arguments
- name - (string) the name of the procedure to call
Returns
- (null) nothing
Variables
nextLine
Contains the next script line to be executed.
Example
Script.nextLine = 1; //Set the next line to be the first line Console.print("The next line is " + Script.nextLine); //Show the next line
Notes
This variable can be used as "goto".
line
Contains the current script line. Read-only. [Added in Actionaz 3.7.0.]
Example
Console.print("The current line is " + Script.line); //Show the current line
en/code/core/script.1476004225.txt.gz · Last modified: 2021/02/13 11:23 (external edit)