15.12.2015, 13:15
Quote:
You made a moon-walking actor, congratulations !
https://sampwiki.blast.hk/wiki/ApplyAnimation Try setting lockx, locky, freeze to 0, or just freeze to 0, or just lockx and locky to 0. Play around with the parameters. (if not, it may be from the animation and you should try another one) |
[ame="http://www.youtube.com/watch?v=2qlqVj6y_F0"]http://www.youtube.com/watch?v=2qlqVj6y_F0[/ame]
So:
PHP код:
new animAndSpeed[2][animData] = {
{"WALK_civi",1.5357},
{"RUN_civi",3.7}
};
public CreateActor(playerid, animation)
{
new actorid;
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
actorid = CreateActor(189, x+1, y+1, z, 0);
ApplyActorAnimation(actorid, "ped", animAndSpeed[0][animation], 4.1, 1, 0, 0, 1, 0);
}
PHP код:
new animAndSpeed[2][animData] = {
{"WALK_civi",1.5357},
{"RUN_civi",3.7}
};
public CreateActor(playerid, animation)
{
new actorid;
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
actorid = CreateActor(189, x+1, y+1, z, 0);
ApplyActorAnimation(actorid, "ped", animAndSpeed[0][animation], 4.1, 1, 0, 0, 0, 0);
}