GetLocalResource

From Dragon Age Toolset Wiki
Jump to: navigation, search

Get a local variable of type resource on an object

resource GetLocalResource(
object oObject,
string sVarName
);
Parameters:
oObject
The object from which to get the variable
sVarName
The name of the variable
Returns:

Returns the value of the variable or an empty resource name on error.

Source:

script.ldf

Description

Gets a local variable of type resource on the specified object.

Remarks

All local variables must be predefined in the target object's variables 2da file before this function can be used successfully. If a local variable is not predefined this function will fail silently.

See also

SetLocalResource