Blockland Forums > Modification Help
How to get my position?
(1/1)
Wordy:
How do I find my position within the game?

Client-sided btw.
Port:
getWords( serverConnection.getControlOb ject().getTransform(), 0, 2 )
Wordy:
So if I wanted to know my position and made a Clcmd;

it'd be...

--- Code: ---function MyPosition()
{
    %Position = getWords( serverConnection.getControlOb ject().getTransform(), 0, 2 );
   
    NewChatHUD_AddLine("Your current position is; "@%Position@".");
}

--- End code ---
Port:

* 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.
Wordy:

--- Quote from: Port on February 10, 2012, 09:50:56 AM ---
* 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.
--- End quote ---

Thank you.
Navigation
Message Index

Go to full version