How to make an anim not stop?
#1

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

Do you use any Anims FS?
Reply
#3

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;
}
Reply
#4

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

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
Reply
#6

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

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

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

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.
Reply
#9

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.
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)