GetNearestObjectByGroup

From Dragon Age Toolset Wiki
Jump to: navigation, search

Returns N nearest objects of a specific type, with a specifc Group Id

object[] GetNearestObjectByGroup(
object oObject,
int nGroupId,
int nObjectType = OBJECT_TYPE_ALL,
int nNumberOfObjects = 1,
int nCheckLiving = 0,
int nCheckPerceived = 0,
int nIncludeSelf = 0
);
Parameters:
oObject
target Object
nGroupId
Group Id for the objects to query
nObjectType
type for the objects to query for their distance
nNumberOfObjects
(optional) Number of objects to return
nCheckLiving
(optional) only returns objects if they are alive
nCheckPerceived
(optional) only returns objects if they are within the perception radius
nIncludeSelf
[Undocumented]
Returns:

array of N nearest objects

Source:

script.ldf

Description

Returns N nearest objects of a specific type, with a specifc Group Id