FindRandomActor - Game: Difference between revisions

Jump to navigation Jump to search
m
Convert source tags to syntaxhighlight
imported>Rhavlovick
m (1 revision: Clobber re-import by Henning)
 
m (Convert source tags to syntaxhighlight)
 
Line 6: Line 6:


== Syntax ==
== Syntax ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
Actor Function FindRandomActor(float afX, float afY, float afZ, float afRadius) native global
Actor Function FindRandomActor(float afX, float afY, float afZ, float afRadius) native global
</source>
</syntaxhighlight>


== Parameters ==
== Parameters ==
Line 20: Line 20:


== Examples ==
== Examples ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
; Find a random actor to 0,0,0, limiting the search to 5 units
; Find a random actor to 0,0,0, limiting the search to 5 units
Actor randomActor = Game.FindRandomActor(0.0, 0.0, 0.0, 5.0)
Actor randomActor = Game.FindRandomActor(0.0, 0.0, 0.0, 5.0)
</source>
</syntaxhighlight>


== See Also ==
== See Also ==

Navigation menu