Chat Animation
#1

Hey guys, I have a problem. You know when you talk IG, it will apply the chat animation that people scripted in like this:
pawn Код:
public OnPlayerText(playerid, text[])
{
    if (realchat)
    {
        new string[128];
        format(string, sizeof(string), "%s says: %s", GetName(playerid), text);
        ProxDetector(30.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
        format(string, sizeof(string), "says: %s", text);
        SetPlayerChatBubble(playerid,string,COLOR_WHITE,5.0,5000);
        ApplyAnimation(playerid,"PED","IDLE_chat",0,0,0,0,0,3000,1);
        return 0;
    }
    return 1;
}
Works perfectly, but DURING the animation talking. It freezes the player. I want the player to move and talk not freeze him while the animation is running. Like move and anim.

I can't seem to fix it, the 3rd last param which is the freeze, I edited it to 0. But no solve.

I'd like a solution, thanks.
Reply
#2

that works for me.
with
pawn Код:
ApplyAnimation(playerid,"PED","IDLE_CHAT",2.0,1,0,0,1,1);
Reply
#3

Quote:
Originally Posted by park4bmx
Посмотреть сообщение
that works for me.
with
pawn Код:
ApplyAnimation(playerid,"PED","IDLE_CHAT",2.0,1,0,0,1,1);
Does it freezes the player during the animation? Cause I don't want that.
Reply
#4

nope all my players can walk,run while its playing.

Quote:

This forum requires that you wait 120 seconds between posts.

very annoying ;X
Reply
#5

Read ApplyAnimation to understand it yourself and be able to script your own animation!
Reply
#6

Quote:
Originally Posted by maramizo
Посмотреть сообщение
Read ApplyAnimation to understand it yourself and be able to script your own animation!
I understand it... But I can't just fix the freezing animation. Scroll up and that code was mines, just to let you know.

EDIT: Also, that's not my problem. Understand how to script the animation. Read my problem.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)