Author Topic: How to get my position?  (Read 440 times)

How do I find my position within the game?

Client-sided btw.

getWords( serverConnection.getControlOb ject().getTransform(), 0, 2 )

So if I wanted to know my position and made a Clcmd;

it'd be...
Code: [Select]
function MyPosition()
{
    %Position = getWords( serverConnection.getControlOb ject().getTransform(), 0, 2 );
   
    NewChatHUD_AddLine("Your current position is; "@%Position@".");
}
« Last Edit: February 10, 2012, 09:52:20 AM by Wordy »

  • You forgot a ; after the line setting the %Position variable.
  • Assuming you have a system that parses commands starting with clCmd, you accidentally added a c too many in the function name.

  • You forgot a ; after the line setting the %Position variable.
  • Assuming you have a system that parses commands starting with clCmd, you accidentally added a c too many in the function name.

Thank you.