Following the documentation here: http://docs.oxidemod.org/rust/#console-commands
I see that there is no BasePlayer for a ConsoleCommand - how would I be able to get the current player issuing the console command?
Would the following work?
Code:[ConsoleCommand("command")] private void SuicideHandler(ConsoleSystem.Arg arg) { var basePlayer = arg.Player(); }
Solved Get BasePlayer from ConsoleCommand
Discussion in 'Rust Development' started by SemiDemented, Jun 22, 2015.
-
Its arg.connection.player
-
Thank you