UT GetNearestObjectByTag

From Dragon Age Toolset Wiki
Revision as of 19:08, 10 February 2010 by BryanDerksen (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Returns the one nearest object to the specified object

object UT_GetNearestObjectByTag(
object oObject,
string sTag,
int nIncludeSelf = 0
);
Parameters:
oObject
target Object
sTag
Tag for the objects to query
nIncludeSelf
TRUE if the query should check the target object
Returns:

the object nearest to oObject that meets the criteria

Source:

script.ldf

Description

UT_GetNearestObjectByTag returns the object in the current area which both has the given tag and is closest to the specified object.