Jump to content

Noob question (getElementPosition to outputChatBox)


Recommended Posts

Damn it. The script you provided also doesn't work.

Nothing happens when I write "getpos" in my console or do /getpos in the chat.

Did you set it to server side in meta.xml?

No, I set it to client. Is that okay?

  
addCommandHandler("getpos",  
function ()  
      outputChatBox( string.format( 'Position: %s, %s, %s', getElementPosition ( localPlayer ) ) ) 
end 
) 
  

Wow!

That works!

Thanks :)

etWsVK7.jpg

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...