FindRandomReferenceOfAnyTypeInListFromRef - Game
Revision as of 17:14, 18 October 2011 by imported>Jlundin
Member of: Game Script
Finds a random reference of any of the types in the list from the given reference location and within the given radius.
Syntax
ObjectReference Function FindRandomReferenceOfAnyTypeInListFromRef(FormList arBaseObjectsA, ObjectReference arCenter, \
float afRadius) global
Parameters
Return Value
A random reference of of any of the types within the radius or the center reference, none if none was found.
Examples
; Find a random gem reference near the player, limiting the search to 5 units
ObjectReference randomGem = Game.FindRandomReferenceOfAnyTypeInListFromRef(GemList, Game.GetPlayer(), 5.0)