Go to documentation repository
The Int_var method sets and returns values of global variables of integer type.
Attention!
Syntax for method invocation:
function Int_var (globalvar : String) : int
Note.
Example. In the test example below, to check the method operation, the global variable named 2 is assigned a value of 1 that is then increases by 1 and is displayed in the debug window of the script.
if(Event.Action =="RUN") { Int_var(2) = 1; Int_var("2")++; DebugLogString(Int_var("2").toString()); }