Difference between revisions of "FindClosestReferenceOfAnyTypeInListFromRef - Game"

m
Reverting test edit
imported>Thingy Person
imported>Cipscis
m (Reverting test edit)
 
(4 intermediate revisions by 2 users not shown)
Line 7: Line 7:
== Syntax ==
== Syntax ==
<source lang="papyrus">
<source lang="papyrus">
ObjectReference Function FindClosestReferenceOfAnyTypeInListFromRef(FormList arBaseObjects, ObjectReference arCenter, \
ObjectReference Function FindClosestReferenceOfAnyTypeInListFromRef(FormList arBaseObjects, ObjectReference arCenter, float afRadius) global
  float afRadius) global
return FindClosestReferenceOfAnyTypeInList(arBaseObjects, arCenter.X, arCenter.Y, arCenter.Z, afRadius)
endFunction
</source>
</source>


== Parameters ==
== Parameters ==
* arBaseObjectsA: The list of valid base objects to look for
* arBaseObjects: The list of valid base objects to look for
* arCenter: The [[ObjectReference Script|reference]] to use as the center point of the search
* arCenter: The [[ObjectReference Script|reference]] to use as the center point of the search
* afRadius: Maximum distance from center to look for a reference
* afRadius: Maximum distance from center to look for a reference
Anonymous user