Skip to main content

Get Closest

Finds the element in Targets that is closest in space to Origin, and returns it, its index in the list, and its distance to Origin.

InputsOutputs
Any (rec room object, player, vector3) | OriginAny (rec room object, player, vector3) | Closest
List<Any (rec room object, player, vector3)> | Targetsint | Closest Index
float | Distance
Properties
Is beta required?No
Is chip a trolling risk?No
Is chip a role assignment risk?No
Chip UUID49fa5928-1af5-49e3-96d0-5ae67e6d81c9
Room availabilityAvailable everywhere

Uses

None so far!

Tips

None so far!

Issues

None so far!