My playground sidebar
Game Basics
Features
Mapmaking
My playground sidebar
Game Basics
Features
Mapmaking
This is an old revision of the document!
GetScriptVar(<-uid <-var <-script <-partOrUnitUID) -> val
Gets a variable from a script on a unit or part.
* <-uid: This parameter appears to be unused. * <-var: The name of the variable to get. * <-script: The index of the script on the part, or the script name. * <-partOrUnitUID: The unit or part to get the variable from.
* ->val: The value of the variable.
#This will get the value of the variable "MyVar" from script index 0 on unit with UID 1 GetScriptVar("" "MyVar" 0 1) ->val
⇐ Index