⇐ Index
⇐ Scripting
GetScriptVar
GetScriptVar(<-uid <-var <-script <-partOrUnitUID) -> val
Description
Gets a variable from a script on a unit or part.
Parameters
<-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.
Return Value
Examples
#This will get the value of the variable "MyVar" from script index 0 on unit with UID 1
GetScriptVar("" "MyVar" 0 1) ->val
⇐ Index