SA-MP Forums Archive
How to make an anim not stop? - 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: How to make an anim not stop? (/showthread.php?tid=345545)



How to make an anim not stop? - ricardo178 - 25.05.2012

Hello guys. How do i make an anim not stop with Enter? I want to make it impossible to stop the anim..


Re: How to make an anim not stop? - ViniBorn - 25.05.2012

Do you use any Anims FS?


Re: How to make an anim not stop? - ricardo178 - 25.05.2012

No.. I want this anim to don't stop:

pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
    new Float:hp;
    GetPlayerHealth(playerid, hp);
    if(hp <= 60)
    {
        ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 0, 1, 1, 1, 0, 1);
        return 1;
    }
    return 0;
}



Re: How to make an anim not stop? - ViniBorn - 25.05.2012

Thus it will not stop until another animation to run.
I tested in my gamemode ...


Re: How to make an anim not stop? - FalconX - 25.05.2012

Quote:
Originally Posted by Viniborn
Посмотреть сообщение
Thus it will not stop until another animation to run.
I tested in my gamemode ...
Animations can be stopped by using the ClearAnimation Function.

EDIT: MY BAD IGNORE MY POST PLZ xD

ApplyAnimation function might help ^^
-FalconX


Re: How to make an anim not stop? - ricardo178 - 25.05.2012

Actualy i want it to NOT stop.. If i press ENTER it stops, i want it to not stop. xD


Re: How to make an anim not stop? - Baboon - 25.05.2012

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

Check out the loop part.
change that to 1 (after 4.0)


Re: How to make an anim not stop? - Catalyst- - 25.05.2012

Quote:
Originally Posted by ricardo178
Посмотреть сообщение
Actualy i want it to NOT stop.. If i press ENTER it stops, i want it to not stop. xD
You probably have ClearAnimations(playerid) somewhere under OnPlayerKeyStateChange. Find it, and delete it.


Re: How to make an anim not stop? - ricardo178 - 25.05.2012

No i don't have Clear Annimation anywhere, and even after changing that thing to 1, i still be able to wake up if i press ENTER.


Re: How to make an anim not stop? - Catalyst- - 25.05.2012

Do you have an if statement under OnPlayerKeyStateChange that looks something like:
pawn Код:
if(newkeys & KEY_SECONDARY_ATTACK)
If so, post everything under it.