ObjectReferencefunctionFindRandomReferenceOfAnyTypeInListFromRef(FormListarBaseObjects, ObjectReferencearCenter, floatafRadius)Global
Description
Wiki Description
Finds a random ObjectReference of any of the types in the list from the given ObjectReference location and within the given radius.
Documentation Comment
Finds a random reference of a given base object within a given radius of a reference
Parameters
FormListarBaseObjects
CK Wiki Description
A FormList filled with base objects to look for
ObjectReferencearCenter
CK Wiki Description
The ObjectReference to use as a center of the search.
floatafRadius
CK Wiki Description
Maximum distance from center to look for a ObjectReference. The unit of this parameter is comparatively much shorter than the radius of a cloak spell or the feet parameter given to "target actor" and "target location" spells. Try starting with a value of 400.
Examples
No human-generated examples found for this function.
Auto-Generated Example
FormList myFormList__arBaseObjects
ObjectReference myObjectReference__arCenter
float myFloat__afRadius
ObjectReference returnedValue = Game.FindRandomReferenceOfAnyTypeInListFromRef(myFormList__arBaseObjects, myObjectReference__arCenter, myFloat__afRadius)Related Pages
- Game
- Game.FindClosestReferenceOfAnyTypeInList(...)
- Game.FindClosestReferenceOfAnyTypeInListFromRef(...)
- Game.FindClosestReferenceOfType(...)
- Game.FindClosestReferenceOfTypeFromRef(...)
- Game.FindRandomReferenceOfAnyTypeInList(...)
- Game.FindRandomReferenceOfType(...)
- Game.FindRandomReferenceOfTypeFromRef(...)
- Unit
