Author Topic: getControlObjectAltitude();  (Read 646 times)

I know this is a clientside command...
I tried using commandToClient, couldn't get it to work.
Is there a serverside version of this thang?

Halp please, I'm in a bit of a cucumber D:

getWord(playerobject.position,2);

playerobject being the reference to the player object.
Example: %client.player, %obj, %whatever, depends on what you're referencing.

ServerConnection.getControlOb ject() is your control object client-sided.


GameConnection::player - the variable for their player's variable
Player::getPosition() - returns the players position

All made:

%client = findclientbyname("x");
%altitude = getWord(%client.player.getPosition(), 2);