Difference between revisions of "GetNearestObjectByHostility"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(Generated by Sunjammer's Dragon Age Script Paser)
 
(fill in missing parameter, remove tag)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Generated with errors}}
 
 
{{dafunction
 
{{dafunction
 
|name=GetNearestObjectByHostility
 
|name=GetNearestObjectByHostility
Line 6: Line 5:
 
|param1name=oObject
 
|param1name=oObject
 
|param1desc=target Object
 
|param1desc=target Object
 +
|param1default=
 
|param2type=int
 
|param2type=int
 
|param2name=nHostility
 
|param2name=nHostility
 
|param2desc=Hostility for the objects to query (true/false)
 
|param2desc=Hostility for the objects to query (true/false)
 +
|param2default=
 
|param3type=int
 
|param3type=int
 
|param3name=nObjectType
 
|param3name=nObjectType
 
|param3desc=type for the objects to query for their distance
 
|param3desc=type for the objects to query for their distance
 +
|param3default=OBJECT_TYPE_ALL
 
|param4type=int
 
|param4type=int
 
|param4name=nNumberOfObjects
 
|param4name=nNumberOfObjects
 
|param4desc=(optional) Number of objects to return
 
|param4desc=(optional) Number of objects to return
 +
|param4default=1
 
|param5type=int
 
|param5type=int
 
|param5name=nCheckLiving
 
|param5name=nCheckLiving
 
|param5desc=(optional) only returns objects if they are alive
 
|param5desc=(optional) only returns objects if they are alive
 +
|param5default=0
 
|param6type=int
 
|param6type=int
 
|param6name=nCheckPerceived
 
|param6name=nCheckPerceived
 
|param6desc=(optional) only returns objects if they are within the perception radius
 
|param6desc=(optional) only returns objects if they are within the perception radius
 +
|param6default=0
 
|param7type=int
 
|param7type=int
 
|param7name=nIncludeSelf
 
|param7name=nIncludeSelf
 
|param7desc=
 
|param7desc=
|returntype=object[]
+
|param7default=0
|returndesc=
+
|returntype=object
 +
|returnarra=true
 +
|returndesc=An array of objects that match the parameters' criteria
 
|sourcefile=script.ldf
 
|sourcefile=script.ldf
 
|sourcemodule=
 
|sourcemodule=

Latest revision as of 19:31, 24 February 2010

Returns N nearest object of a specific type, with a specifc Hostility

object[] GetNearestObjectByHostility(
object oObject,
int nHostility,
int nObjectType = OBJECT_TYPE_ALL,
int nNumberOfObjects = 1,
int nCheckLiving = 0,
int nCheckPerceived = 0,
int nIncludeSelf = 0
);
Parameters:
oObject
target Object
nHostility
Hostility for the objects to query (true/false)
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:

An array of objects that match the parameters' criteria

Source:

script.ldf

Description

Returns N nearest object of a specific type, with a specifc Hostility