filthy_freak_
8th July 2015, 05:33
Would anyone like to have a function that moves a client based on wasd input?
For example
player playerMove("up");
wait 1;
player playerMove("down");
wait 1;
player playerMove("left");
wait 1;
player playerMove("right");
wait 1;
player playerMove("none");
The client would move in the specified direction depending on current angle. So if i'm facing West and set left it will walk South. Also can be used to move clients/bots without worrying about clipping into objects, allowing more advanced bot path algorithms. Probably less server load too, with no need to use moveTo(), and stock movement/character animations should work.
It can be done, just ask.
For example
player playerMove("up");
wait 1;
player playerMove("down");
wait 1;
player playerMove("left");
wait 1;
player playerMove("right");
wait 1;
player playerMove("none");
The client would move in the specified direction depending on current angle. So if i'm facing West and set left it will walk South. Also can be used to move clients/bots without worrying about clipping into objects, allowing more advanced bot path algorithms. Probably less server load too, with no need to use moveTo(), and stock movement/character animations should work.
It can be done, just ask.