So I´m working on with my movement (still improving dusty´s bare bone movement) and I got up to this:
I tried making a
DisableMove(); command, which will be like
DisableDefMovement(); (that worked so far) and now I wanted to make it set a gani like
DisableMove("walk");. Here´s the scripts parts:
PHP Code:
function onActionServerside() {
if (params[0] == "DisableMove") clientr.move = false;
}
//#CLIENTSIDE
public function DisableMove(ani) {
triggerserver("gui", name, "DisableMove");
if (ani != NULL) setani(ani, NULL);
}
PHP Code:
//#CLIENTSIDE
function onPlayerChats() {
if (player.chat == "/test") DisableMove("walk");
}
PHP Code:
//#CLIENTSIDE
function onTimeOut() {
//movement stuff similar to dustys bare bone one. Suggesting to take a look there (link below)
if (clientr.move == true) setani(client.mode, NULL); // set the characters animation
}
(link
>here<)
I always have to say twice
/test to make the gani set. Why won´t it work at the first time? How can I fix it?