Difference between revisions of "UT GetNearestObjectByTag"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(fill out the missing field while I'm at it)
m (rm unneeded self-link)
Line 23: Line 23:
  
 
<!-- This section contains the full description from the functions comments. Do not change unless you are confident these are incomplete or incorrect. -->
 
<!-- This section contains the full description from the functions comments. Do not change unless you are confident these are incomplete or incorrect. -->
Cite DavidSims: "[[UT_GetNearestObjectByTag]] returns the object in the current area which both has the given tag and is closest to the speicified object."
+
Cite DavidSims: "UT_GetNearestObjectByTag returns the object in the current area which both has the given tag and is closest to the speicified object."
  
 
<!-- == Remarks == -->
 
<!-- == Remarks == -->

Revision as of 19:20, 9 February 2010

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

Cite DavidSims: "UT_GetNearestObjectByTag returns the object in the current area which both has the given tag and is closest to the speicified object."