Author Topic: Play animation  (Read 2644 times)

Is there a way I can make a key play the walk forward character animation (like the press forward and sit at the same time) only eaiser?

I know how to bind key (movemap.bindcmd(keyboard,"<key>","<insertcommanline>);","");)... if i could just get a command line for the console.

%client.player.playthread(1, walk);

K, yea
that works... How can you make it auto find your null?

like .find(%client)

Code: [Select]
function serverCmdWalk(%client){
if(!%client.Walking){
%client.player.playthread(1, walk);
%client.walking = 1;
}else if(%client.walking){
%client.player.playthread(1, root);
%client.walking = 0;
}
}

Untested. Type /walk to start and again to stop.

Have you tested plz lol

It works. Code for biding to key:

Code: [Select]
$remapDivision[$remapCount] = "Walk";
$remapName[$remapCount] = "Walk";
$remapCmd[$remapCount] = "serverCmdWalk";
$remapCount++;

Not sure about that.

I put it saved the code it Script_PlayerWalk.cs and it works fine, neato :D

Dang, thats right, i can't edit posts, Pickle, where do you put Keybindings?

And Badspot, forget the morons who edit they're posts n' all, just put the edit back in before you get a multi-post bonanza D:

Anywhere, i dont think its corrrect though.

Theoretically, you'd want to put this in a .CS outside of Add-Ons and exec it so that you can do it in other servers.

You cant its a server command. Only works if the server has the script.

You'll probably want to change %client.walking to %client.player.walking - if the person Self Deletes and respawns while "walking", then uses /walk again a few animation problems may happen.