animation bug since 3b
#1

Hi all,


I have in my script:

Код:
format(string, sizeof(string), "%s says: %s", GetPlayerNameEx(playerid), text);
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
new lengthtime = strlen(text);
new aTime = lengthtime*200;
ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,1,1,1,1,1);
SetTimerEx("StopTalk", aTime, false, "i", playerid);

public StopTalk(playerid)
{
    ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0);
    return 1;
}
Before the 3b version, the one who talked used to see his animation to stop, and people around him too. Since the 3b, the person who talks can see his animation to stop but people around don't see the animation stop. How to fix it please?

Thx.
Reply
#2

did you try the extra value at the end ?
Reply
#3

https://sampwiki.blast.hk/wiki/ApplyAnimation
Try setting the forcesync arg to 1 in StopTalk
ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0, 1);
Reply
#4

ok I test it thx.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)