
|
when i use this animation to this girl
she /walk and she walking like this http://up.iranblog.com/Files/2adfc0ad5c0b42a5974d.jpg but when i want turn around her like when i press W,A,S,D it , shes cant move around |
|
Make sure the animation isn't looping, or press enter to stop the animation. Maybe you have TogglePlayerControllable set to 0 when the command is used, take it out if you have.
|
if(strcmp(cmd, "/ya", true) == 0) {
TogglePlayerControllable(playerid,1);
ApplyAnimation(playerid, "ped", "WALK_old", 4.0, 1, 1,1, 1, 0);
return 1;
}
return 0;
}
|
can u look at this , this is the script where is wrong ?
Код:
if(strcmp(cmd, "/ya", true) == 0) {
TogglePlayerControllable(playerid,1);
ApplyAnimation(playerid, "ped", "WALK_old", 4.0, 1, 1,1, 1, 0);
return 1;
}
return 0;
}
|
if(strcmp(cmd, "/ya", true) == 0) {
TogglePlayerControllable(playerid,1);
ApplyAnimation(playerid, "ped", "WALK_old", 4.0, 0, 0, 0, 0, 0);
return 1;
}
|
Seems like it would be the animation that causes the problem. If you cant fix it a other way, i would put under OnPlayerKeyStateChange:
If A is pressed, SetPlayerFacingAngle less than before If D is pressed, SetPlayerFacingAngle more than before And then for W and S some velocity stuff, but i guess this would look a bit weird. |