I am trying to do something like this:
Code:[ChatCommand("testing")] void moverplayer(BasePlayer player, string cmdd, string[] args, Vector3 xyz) { TeleportTo(player, 50, 50, 50); //Something like that }
I really have no idea how to do it. I been looking on other plugins but I dont know.
Thanks!
Move player to
Discussion in 'Rust Development' started by Reynostrum, Dec 16, 2015.
-
Wulf Community Admin
Use the "rust.ForcePlayerPosition" library function Oxide provides: Oxide/Rust.cs at master · OxideMod/Oxide · GitHub.
-
Amazing @Wulf !!!!!
Let me ask you something.
In other plugins that teleport players, they also put the player to sleep after teleporting and the screen that load some stuff. Is there a problem I don't put it? -
Wulf Community Admin
You shouldn't have to put them to sleep, but you can play around and see. I think they only do that so that assets can load more.
