SA-MP Forums Archive
Wave animation bug - 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)
+--- Thread: Wave animation bug (/showthread.php?tid=415997)



Wave animation bug [SOLVED] - YoYo123 - 15.02.2013

[ame]http://www.youtube.com/watch?v=ujKin0NJ0WI[/ame]

I got this:
pawn Код:
ApplyPlayerAnimation(playerid, "ON_LOOKERS", "wave_loop", 4.5, 0, 0, 0, 0, 1500, 1);
I've made a custom ApplyAnimation to preload the animation libraries.

Why does that bug happen?


Re: Wave animation bug - Private200 - 15.02.2013

If the animation is working fine then the problem is on your OnPlayerUpdate. Give a look at it.


Re: Wave animation bug - YoYo123 - 15.02.2013

Everything is good in OnPlayerUpdate, you know the bug I meant is that you can't see the other player's animation correctly right? Rewatch the video if not,


Re: Wave animation bug - Kyle - 15.02.2013

Quote:
Originally Posted by Private200
Посмотреть сообщение
If the animation is working fine then the problem is on your OnPlayerUpdate. Give a look at it.
Shut the fuck up, you're talking nonsense.


Re: Wave animation bug - MP2 - 16.02.2013

Looks like the animation parameters are wrong.


Re: Wave animation bug - YoYo123 - 16.02.2013

What exactly is wrong? Here is the stock:

pawn Код:
stock ApplyPlayerAnimation(playerid, animlib[], animname[], Float:fDelta, loop, lockx, locky, freeze, time, forcesync)
{
    ApplyAnimation(playerid, animlib, "null", fDelta, loop, lockx, locky, freeze, time, forcesync);
    return ApplyAnimation(playerid, animlib, animname, fDelta, loop, lockx, locky, freeze, time, forcesync);
}



Re: Wave animation bug - Kyle - 16.02.2013

Try:

ApplyAnimation(playerid, "KISSING", "BD_GF_Wave", 4.0, 0, 0, 0, 0, 0);

or

ApplyAnimation(playerid, "ON_LOOKERS", "wave_loop", 4.0, 0, 0, 0, 0, 0);

One of those works.


Re: Wave animation bug - YoYo123 - 16.02.2013

Kyle, I don't want it to be a never ending loop though..


Re: Wave animation bug - Kyle - 16.02.2013

Quote:
Originally Posted by YoYo123
Посмотреть сообщение
Kyle, I don't want it to be a never ending loop though..
0 = no loop.


Re: Wave animation bug - YoYo123 - 16.02.2013

Quote:

time - Timer in milliseconds. For a never ending loop it should be 0.

https://sampwiki.blast.hk/wiki/ApplyAnimation/