ObjectReferencefunctionFindClosestReferenceOfTypeFromRef(FormarBaseObject, ObjectReferencearCenter, floatafRadius)Global
Description
Wiki Description
Finds the closest ObjectReference of the given type from the location of the target ObjectReference and within the given radius.
Documentation Comment
Finds the closest reference of a given base object within a given radius of a reference
Caveats
CK Wiki - Notes
- If the ObjectReference arCenter is of the same type as arBaseObject, this function will return arCenter. That is to say that this function does not exclude arCenter from it's search.
Parameters
FormarBaseObject
CK Wiki Description
The type of base object to look for
ObjectReferencearCenter
CK Wiki Description
ObjectReference to use as a center to search from
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
Form myForm__arBaseObject
ObjectReference myObjectReference__arCenter
float myFloat__afRadius
ObjectReference returnedValue = Game.FindClosestReferenceOfTypeFromRef(myForm__arBaseObject, myObjectReference__arCenter, myFloat__afRadius)Related Pages
- Game
- Game.FindClosestReferenceOfAnyTypeInList(...)
- Game.FindClosestReferenceOfAnyTypeInListFromRef(...)
- Game.FindClosestReferenceOfType(...)
- Game.FindRandomReferenceOfAnyTypeInList(...)
- Game.FindRandomReferenceOfAnyTypeInListFromRef(...)
- Game.FindRandomReferenceOfType(...)
- Game.FindRandomReferenceOfTypeFromRef(...)
