FindRandomReferenceOfTypeFromRef - Game
Member of: Game Script
Finds a random reference of the given type from the center of the target reference and within the given radius.
SyntaxEdit
ObjectReference Function FindRandomReferenceOfTypeFromRef(Form arBaseObject, ObjectReference arCenter, float afRadius) globalParametersEdit
Return ValueEdit
A random reference of that type within the radius, none if none was found.
ExamplesEdit
; Find a random diamond reference near the player, limiting the search to 5 units
ObjectReference randomDiamond = Game.FindRandomReferenceOfTypeFromRef(Diamond, Game.GetPlayer(), 5.0)See AlsoEdit
- Game Script
- FindClosestReferenceOfAnyTypeInList - Game
- FindClosestReferenceOfAnyTypeInListFromRef - Game
- FindClosestReferenceOfType - Game
- FindClosestReferenceOfTypeFromRef - Game
- FindRandomReferenceOfAnyTypeInList - Game
- FindRandomReferenceOfAnyTypeInListFromRef - Game
- FindRandomReferenceOfType - Game