Posts: 578
Threads: 40
Joined: Dec 2016
Quote:
Originally Posted by Eoussama
I use the block animation, I find it the closest:
PHP код:
ApplyAnimation(playerid, "PED", "FIGHTA_BLOCK", 4.1, 0, 0, 0, 0, 480, 1);
One thing tho! If the animation was applied while the player is running, they won't be able to stop until the animation is finished, it can be really bad in situations where you might fall from high places.
|
Hm, gonna try getting the sprint status by their velocity and then apply the animation? I.e:
PHP код:
new Float:x, Float:y, Float:z, Float:units;
GetPlayerVelocity(playerid, x, y, z);
if(floatsqroot(floatabs(floatpower(x + y + z, 2.0))) < 0.1552086)
//apply anim
Note that I might have calculated horribly wrong.