1,482
edits
imported>Chesko No edit summary |
m (Convert source tags to syntaxhighlight) |
||
| Line 6: | Line 6: | ||
== Syntax == | == Syntax == | ||
< | <syntaxhighlight lang="papyrus"> | ||
ObjectReference Function FindRandomReferenceOfTypeFromRef(Form arBaseObject, ObjectReference arCenter, float afRadius) global | ObjectReference Function FindRandomReferenceOfTypeFromRef(Form arBaseObject, ObjectReference arCenter, float afRadius) global | ||
</ | </syntaxhighlight> | ||
== Parameters == | == Parameters == | ||
| Line 19: | Line 19: | ||
== Examples == | == Examples == | ||
< | <syntaxhighlight lang="papyrus"> | ||
; Find a random diamond reference near the player, limiting the search to 5 units | ; Find a random diamond reference near the player, limiting the search to 5 units | ||
ObjectReference randomDiamond = Game.FindRandomReferenceOfTypeFromRef(Diamond, Game.GetPlayer(), 5.0) | ObjectReference randomDiamond = Game.FindRandomReferenceOfTypeFromRef(Diamond, Game.GetPlayer(), 5.0) | ||
</ | </syntaxhighlight> | ||
== See Also == | == See Also == | ||