Why does this SOMETIMES not apply the animation?
#1

pawn Код:
if(Taser[playerid] == 1 && weaponid == 23 && hittype == 1)
    {
        new string[128];
        TogglePlayerControllable(hitid, false);
        ApplyAnimation(hitid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
        SetTimerEx("Tasered", 10000, 0, "d", hitid);
        format(string, sizeof(string), "* %s has tasered %s *", GetNameEx(playerid), GetNameEx(hitid));
        ProxDetector(30.0, playerid, string, COLOUR_PURPLE, COLOUR_PURPLE, COLOUR_PURPLE, COLOUR_PURPLE, COLOUR_PURPLE);
        return 0;
    }
It says the ProxDetector line EVERY TIME. It just won't always force the animation?

pawn Код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
Under this function, although it was under OnPlayerShootPlayer, but this still didn't force anim everytime.
Reply
#2

pawn Код:
ApplyAnimation(hitid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0, 1);
The last parameter is "forcesync".
Reply
#3

Ahh!! Thank you! Can you explain exactly what that means?
Reply
#4

Forcing the animation to show for all the players. I can't explain "Synchronization" better than this wikipedia page.

http://en.wikipedia.org/wiki/Synchronization
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)