Difference between revisions of "FindClosestActorFromRef - Game"

imported>Thingy Person
imported>Thingy Person
 
Line 7: Line 7:
== Syntax ==
== Syntax ==
<source lang="papyrus">
<source lang="papyrus">
Actor Function FindRandomActorFromRef(ObjectReference arCenter, float afRadius) global
Actor Function FindClosestActorFromRef(ObjectReference arCenter, float afRadius) global
return FindRandomActor(arCenter.X, arCenter.Y, arCenter.Z, afRadius)
return FindClosestActor(arCenter.X, arCenter.Y, arCenter.Z, afRadius)
endFunction
endFunction
</source>
</source>