ObjectReferencefunctionFindRandomReferenceOfAnyTypeInList(FormListarBaseObjects, floatafX, floatafY, floatafZ, floatafRadius)NativeGlobal
Description
Wiki Description
Finds a random ObjectReference of any of the types in the list from the given location and within the given radius.
Documentation Comment
Finds a random reference of a any base object in the list within a given radius of a location
Parameters
FormListarBaseObjects
CK Wiki Description
The list of valid base objects to look for
floatafX
CK Wiki Description
center of the search, X component
floatafY
CK Wiki Description
center of the search, Y component
floatafZ
CK Wiki Description
center of the search, Z component
floatafRadius
CK Wiki Description
Maximum distance from center to look for a ObjectReference
Examples
No human-generated examples found for this function.
Auto-Generated Example
FormList myFormList__arBaseObjects
float myFloat__afX
float myFloat__afY
float myFloat__afZ
float myFloat__afRadius
ObjectReference returnedValue = Game.FindRandomReferenceOfAnyTypeInList(myFormList__arBaseObjects, myFloat__afX, myFloat__afY, myFloat__afZ, myFloat__afRadius)Related Pages
- Game
- Game.FindClosestReferenceOfAnyTypeInList(...)
- Game.FindClosestReferenceOfAnyTypeInListFromRef(...)
- Game.FindClosestReferenceOfType(...)
- Game.FindClosestReferenceOfTypeFromRef(...)
- Game.FindRandomReferenceOfAnyTypeInListFromRef(...)
- Game.FindRandomReferenceOfType(...)
- Game.FindRandomReferenceOfTypeFromRef(...)
