Index

GetScript1Var

GetScript1Var(<-unit <-varName) ->val

Description

Gets the named variable on the specified unit's first script. The value returned will be a direct instance of the var held by the unit. If the unit or var does not exit, a null value (equivalent to 0) is returned.

:NOTE: Although input/init variables ($varName:<VARIABLE TYPE>) are technically the unit settings of a custom unit, they are still variables and applicable to this API.

Examples

GetScript1Var(<-someUnitUID "test") ->val

Index