Author Topic: Get a players rotation - client side  (Read 897 times)

I have an idea for a certain client-side mod that would be very helpful, just wondering if you can get your players current rotation client-side

getWords( serverConnection.getControlOb ject().getTransform(), 3, 6 )

getWords( serverConnection.getControlOb ject().getTransform(), 3, 6 )
thanks

EDIT:this doesen't seem to work

function servercmdtext(%client)
{
echo(getWords(serverConnection.getControlOb ject().getTransform(),3,6));
}
« Last Edit: January 16, 2012, 04:13:13 AM by soba »


-snip-
it was for testing purposes, a client-side server cmd

For that to work, the following has to be true:
  • You have to execute that script.
  • You have to evaluate the command, either through console or some other thing.
  • You have to be connected to a server and in control of your player.
  • You have to be checking in console, not chat.

Are you using some client-sided mod that parses /* into serverCmd* upon sending a chat message or not? The problem is not the code within the function, it's either invoking the function, executing the script or broken ConsoleDlg.

I just used the echo by itself, thanks for the tips tho