1. Does anyone know how to get XYZ coordinates of where your standing ingame?(its for a plugin im making)
    thanks in advance
     
  2. Wulf

    Wulf Community Admin

    player.transform.position
     
  3. Thx M8!

    is there a way i can do that In-game i need the coords for a plugin im making
     
    Last edited by a moderator: Jun 1, 2015
  4. What do you mean in-game? Your plugin will need to get the player you want to find the position of and then do with it what you want.
     
  5. I just need the coords for a one time thing.
     
  6. Wulf

    Wulf Community Admin

    Code:
    PLUGIN.Title = "Helpz I'm Lost"
    PLUGIN.Version = V(0, 1, 0)
    PLUGIN.Description = "No"
    PLUGIN.Author = "Grumpy Cat"function PLUGIN:Init()
        command.AddChatCommand("loc", self.Plugin, "Location")
    endfunction PLUGIN:Location(player)
        rust.SendChatMessage(player, player.transform.position)
    end
     
  7. Well that works thx
     
  8. is there a new command for this?
    (00:51:33) | [RCON] player.transform.position

    (00:51:33) | Command not found
     
  9. There is no built in command. The above is for code (C#), not a console/rcon command
     
  10. ok thankyou
     

  11. Do I just create a plugin.cs file and put in Plugin Folder then oxide.reload *? Tried and doesn't work.
     
  12. What Wulf wrote isn't a CSharp plugin its LUA ... so what you have to do is to create a .lua file (example.lua) and paste that code into the file then save.
     
  13. Guess the player.transform.position command is for an older version of Oxide. Anybody know the updated command?
     
  14. Player Location for Rust | Oxide
     
  15. Thank you!
     
  16. There is a command, open console with F1 and type printpos
     
  17. Wulf

    Wulf Community Admin

    There likely wasn’t 2 years ago when this was posted. ;)
     
  18. The code also wasn't C#, I must have been delusional. Though I am still confident that there was not a command to show your position back then, as Wulf stated.
     
    Last edited by a moderator: Dec 18, 2017
  19. Is there a way to get the position of all players using console command?
     
  20. Wulf

    Wulf Community Admin

    No, you’d need a plugin.