RustTip

global.teleport2nearest

commandserver

Teleport to the current closest entity matching the first argument name. Add second int argument to teleport to the nth closest entity (teleport2nearest horse 2 will teleport to the 3rd closest horse)

Quick info

Runs on
server
Class
ConVar.Global

Example

global.teleport2nearest

In other branches

public
unchanged
aux02
unchanged