Blockland Forums > Modification Help

Recoil/moving camera view

Pages: << < (2/3) > >>

Greek2me:

Nope.

yaw(90);
Would turn the camera 90 degrees right (or left, not sure).

pitch(90);
Would make the camera look straight up (I think).

Swollow:

yes i know this im talking about the actual script
I have no idea what i am doing

--- Code: ---function clientcmdturn(%client)
{
%client.yaw(50);
}
--- End code ---


Amade:

The snippet you just posted is incorrect usage, it is simply yaw(50); - no object is used.

Swollow:

ok how would I call this through server now?

Greek2me:

on the client:

--- Code: ---function clientCmdTurn(%flag)
{
yaw(%flag);
}
--- End code ---

on the server:

--- Code: ---function GameConnection::Turn(%this,%flag)
{
commandToClient(%this,'turn',%flag);
}
findClientByName(Greek2me).turn(50);
--- End code ---

Keep in mind that this is very impractical, because the client needs a mod in order for it to work.

Pages: << < (2/3) > >>

Go to full version