User Tools

Site Tools


playground:k75:irpl:getscriptvar

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

  • ->val: The value of the variable.

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

playground/k75/irpl/getscriptvar.txt · Last modified: 2024/12/23 13:14 by Karsten75