GetNearestObjectToLocation

From Dragon Age Toolset Wiki
Jump to: navigation, search

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