I've looked around and haven't been able to find anything on this and I can't seem to figure out how to get a player object to use while working with "void OnFindSpawnPoint()". I would like to be able to check who the player is before changing their spawn position.
Solved Getting BasePlayer from OnFindSpawnPoint?
Discussion in 'Rust Development' started by Drenferalis, Sep 4, 2016.
-
Wulf Community Admin
There's no arguments for OnFindSpawnPoint(), you wouldn't be able to get the BasePlayer from it. You can use OnPlayerRespawn though.
-
Im trying to specifically set a players spawn, should I use a force move on the player from OnPlayerRespawn instead?
Edit: player.MovePosition(pos); worked for me. Thank you!Last edited by a moderator: Sep 4, 2016
