Difference between revisions of "GetLocalResource"

From Dragon Age Toolset Wiki
Jump to: navigation, search
m (note on predefining)
m (fixed typo)
 
Line 1: Line 1:
 
{{dafunction
 
{{dafunction
 
|name=GetLocalResource
 
|name=GetLocalResource
|brief=Get a local variable of tyep resource on an object
+
|brief=Get a local variable of type resource on an object
 
|param1type=object
 
|param1type=object
 
|param1name=oObject
 
|param1name=oObject

Latest revision as of 02:43, 20 November 2009

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