SA-MP Forums Archive
girl cant move around - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: girl cant move around (/showthread.php?tid=158885)



girl cant move around - omidi - 11.07.2010

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


Re: girl cant move around - DeathOnaStick - 11.07.2010

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.


Re: girl cant move around - V1ceC1ty - 11.07.2010

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.


Re: girl cant move around - omidi - 23.07.2010

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;
}



Re: girl cant move around - jamesbond007 - 23.07.2010

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


Re: girl cant move around - omidi - 23.07.2010

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

NO ITS NOT WORK!


Re: girl cant move around - omidi - 23.07.2010

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
(
)
(
)