girl cant move around
#1

when i use this animation to this girl
she /walk and she walking like this



but when i want turn around her like when i press W,A,S,D it , shes cant move around
Reply
#2

Quote:
Originally Posted by omidi
Посмотреть сообщение
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
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.
Reply
#3

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.
Reply
#4

Quote:
Originally Posted by V1ceC1ty
Посмотреть сообщение
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.
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;
}
Reply
#5

Quote:
Originally Posted by omidi
Посмотреть сообщение
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;
}
maybe try ...

Код:
if(strcmp(cmd, "/ya", true) == 0) {
  TogglePlayerControllable(playerid,1);
   ApplyAnimation(playerid, "ped", "WALK_old", 4.0, 0, 0, 0, 0, 0);
    return 1;
  }
reply me if it works
Reply
#6

are you kidding me u just delete return0;
then u though it will work !

NO ITS NOT WORK!
Reply
#7

Quote:
Originally Posted by DeathOnaStick
Посмотреть сообщение
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.
thanks man its work but when i press a,d,w,s its move like this

ETC when i pressed w then it goto the north
this is an simple movement of that :
__|
__|
|
but i want it move like this
(
)
(
)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)