Difference between revisions of "GetNearestObjectToLocation"
From Dragon Age Toolset Wiki
BryanDerksen (Talk | contribs) m (1 revision: re-import with default parameter value parameters set) |
BryanDerksen (Talk | contribs) (fill in missing parameters) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | |||
{{dafunction | {{dafunction | ||
|name=GetNearestObjectToLocation | |name=GetNearestObjectToLocation | ||
Line 5: | Line 4: | ||
|param1type=location | |param1type=location | ||
|param1name=lLocation | |param1name=lLocation | ||
− | |param1desc= | + | |param1desc=Location from which to begin the search |
|param1default= | |param1default= | ||
|param2type=int | |param2type=int | ||
Line 15: | Line 14: | ||
|param3desc=(optional) Number of objects to return | |param3desc=(optional) Number of objects to return | ||
|param3default=1 | |param3default=1 | ||
− | |returntype=object | + | |returntype=object |
+ | |returnarra=TRUE | ||
|returndesc= | |returndesc= | ||
|sourcefile=script.ldf | |sourcefile=script.ldf |
Revision as of 22:07, 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
);
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:
- [Undocumented]
- Source:
- script.ldf
Description
Returns N nearest objects of a specific type to a Location