[Question] Moving while performing talking animation. -
$Marco$ - 25.06.2014
Hey guys I was wondering how to allow a person to move while performing a talking animation.
I am using this to set the player animation while he talks:
pawn Код:
new Length = strlen(text);
new TalkTime = Length*100;
ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,1,0,0,1,TalkTime);
KillTimer(Server[StopTalkingAnimation]);
Server[StopTalkingAnimation] = SetTimerEx("StopTalkingAnim", TalkTime, 0, "d", playerid);
return 0;
Re : [Question] Moving while performing talking animation. -
Clad - 25.06.2014
pawn Код:
new TalkTime = Length*1000;
ApplyAnimation(playerid,"PED","IDLE_CHAT",4.1,1,1,1,0,aTime);
return 1;
}
Try this.
Re: [Question] Moving while performing talking animation. -
Inn0cent - 25.06.2014
There you go.
pawn Код:
TogglePlayerControllable(playerid, true);
Re: Re : [Question] Moving while performing talking animation. -
$Marco$ - 25.06.2014
Quote:
Originally Posted by Clad
pawn Код:
new TalkTime = Length*1000; ApplyAnimation(playerid,"PED","IDLE_CHAT",4.1,1,1,1,0,aTime); return 1; }
Try this.
|
Not working.
Re: [Question] Moving while performing talking animation. -
$Marco$ - 25.06.2014
Quote:
Originally Posted by Inn0cent
There you go.
pawn Код:
TogglePlayerControllable(playerid, true);
|
Sorry for the DP.
Not working either.
Re: [Question] Moving while performing talking animation. -
JakeHunter1 - 25.06.2014
ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0, 0,0,1500); //1000 - 1 sec
Re: [Question] Moving while performing talking animation. -
$Marco$ - 25.06.2014
Quote:
Originally Posted by JakeHunter1
ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0, 0,0,1500); //1000 - 1 sec
|
What if the player says something really big? then it will make a one second animation?
Re: [Question] Moving while performing talking animation. -
icra - 25.06.2014
Quote:
Originally Posted by Xsyiaris
What if the player says something really big? then it will make a one second animation?
|
Wasn't another your question? Anyway just count characters then make a math algorithm which for tot characters increments time by tot secs.
Re: [Question] Moving while performing talking animation. -
$Marco$ - 25.06.2014
Quote:
Originally Posted by icra
Wasn't another your question? Anyway just count characters then make a math algorithm which for tot characters increments time by tot secs.
|
His code wasn't correct either he just offered to use a one second animation so it won't effect if you want to move.
Re: [Question] Moving while performing talking animation. -
Rittik - 25.06.2014
Код:
ApplyAnimation(playerid,"PED","IDLE_CHAT",4.1,1,0,0,0,TalkTime);