Difference between revisions of "GetNearestObjectToLocation"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(fill in missing parameters)
 
Line 16: Line 16:
 
|returntype=object
 
|returntype=object
 
|returnarra=TRUE
 
|returnarra=TRUE
|returndesc=
+
|returndesc=Array of N nearest objects of a specific type
 
|sourcefile=script.ldf
 
|sourcefile=script.ldf
 
|sourcemodule=
 
|sourcemodule=

Latest revision as of 22:08, 2 March 2010

N nearest objects of a specific type to a Location

object[] GetNearestObjectToLocation(
location lLocation,
int nObjectType = OBJECT_TYPE_ALL,
int nNumberOfObjects = 1
);
Parameters:
lLocation
Location from which to begin the search
nObjectType
type for the objects to query for their distance
nNumberOfObjects
(optional) Number of objects to return
Returns:

Array of N nearest objects of a specific type

Source:

script.ldf

Description

Returns N nearest objects of a specific type to a Location