How to make this without that the player stop walking..? -
Ihsan_Cingisiz - 16.06.2010
Hello, i made a ApplyAnimation command for if the player
talks you see a TalkAnimation with this script :
Quote:
public OnPlayerText(playerid, text[]){
ApplyAnimation(playerid,"PED","IDLE_CHAT",3.8,1,1, 1,0,1000);
return 1;
}
|
But when the player walks/runs and if he/she says something
the players stop from moving(Can't move) for 1 second it applies
the animation in that 1 second and then you can go walking after
animation is ended over 1 minute. But i want that the animation
continues when you walk, so you don't stop to talk..
Example of the problem :
(- = Running) (| = Stop from moving) (.: = Animation)
This happens :
Quote:
-----------------|.:---------------
|
Re: How to make this without that the player stop walking..? -
Ihsan_Cingisiz - 16.06.2010
... Eh... *Scared Accent* : Bump..?
Re: How to make this without that the player stop walking..? -
Ihsan_Cingisiz - 16.06.2010
Bump
Re: How to make this without that the player stop walking..? -
Trooper[Y] - 16.06.2010
Check, if running key is pressed.
If yes, dont apply.
I dunno, if theres a run+chat animation,
i dont think so
Re: How to make this without that the player stop walking..? -
Nakash - 16.06.2010
You can make a /togchatanim command easily.
pawn Код:
new TogChatAnim[MAX_PLAYERS];
OnPlayerConnect
pawn Код:
TogChatAnim[playerid] = 0;
pawn Код:
if(strcmp(cmd, "/togchatanim", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (!TogChatAnim[playerid])
{
TogChatAnim[playerid] = 1;
SendClientMessage(playerid, COLOR_GRAD2, " You have togged your chat animation.");
}
else
{
TogChatAnim[playerid] = 0;
SendClientMessage(playerid, COLOR_GRAD2, " You can now see your chat anim.");
}
}
return 1;
}
pawn Код:
public OnPlayerText(playerid, text[]){
if(TogChatAnim[playerid]!=1)
{
ApplyAnimation(playerid,"PED","IDLE_CHAT",3.8,1,1,1,0,1000);
}
return 1;
}
Re: How to make this without that the player stop walking..? -
Ihsan_Cingisiz - 17.06.2010
Quote:
Originally Posted by Kartowka
You can make a /togchatanim command easily.
pawn Код:
new TogChatAnim[MAX_PLAYERS];
OnPlayerConnect
pawn Код:
TogChatAnim[playerid] = 0;
pawn Код:
if(strcmp(cmd, "/togchatanim", true) == 0) { if(IsPlayerConnected(playerid)) { if (!TogChatAnim[playerid]) { TogChatAnim[playerid] = 1; SendClientMessage(playerid, COLOR_GRAD2, " You have togged your chat animation."); } else { TogChatAnim[playerid] = 0; SendClientMessage(playerid, COLOR_GRAD2, " You can now see your chat anim."); } } return 1; }
pawn Код:
public OnPlayerText(playerid, text[]){ if(TogChatAnim[playerid]!=1) { ApplyAnimation(playerid,"PED","IDLE_CHAT",3.8,1,1,1,0,1000); } return 1; }
|
Thanks but that's not really RP you know, i just want that the layer not stops moving when he does the naimation
Re: How to make this without that the player stop walking..? -
Ihsan_Cingisiz - 17.06.2010
Bump, i see on almost every server this animation but if you talk
it uses the animation even if you are walking/running.. I only want
that the player uses the animation without stopping to start the animation.
Re: How to make this without that the player stop walking..? -
LTomi - 17.06.2010
There is an appropriate animation, I've seen it on an RP server, but I don't know which one is that.
Re: How to make this without that the player stop walking..? -
Anthony_Brassi - 17.06.2010
I'm looking for this too.