how to sitch to the next animation -
omidi - 23.07.2010
hey guys how to do this
: when player use de /ya cmd first animtion wil be run like ApplyAnimation(playerid,"BLOWJOBZ","BJ_COUCH_STAR T_W",4.0, 0, 0, 0, 0,0);
then when thats anime is over the next animation automaticly will run affter that like
ApplyAnimation(playerid,"BLOWJOBZ","BJ_COUCH_LOOP_ W ",4.0, 0, 0, 0, 0,0);
and then its over
Re: how to sitch to the next animation -
MisterTickle - 23.07.2010
You could set a timer depending on how long the first animation is.
Re: how to sitch to the next animation -
DJDhan - 23.07.2010
You can use a timer but you need to know the length of the first animation. Say the length of the first animation is 3 seconds.
At top of the script:
Код:
new timer[MAX_PLAYERS];;
Then comes your command:
Код:
if(!strcmp(cmdtext,"/ya",true))
{
ApplyAnimation(playerid,"BLOWJOBZ","BJ_COUCH_START_W",4.0, 0, 0, 0, 0,0);
timer[playerid] = SetTimerEx("ana",3010,0,"i",playerid);
return 1;
}
The function:
Код:
ana(playerid)
{
ApplyAnimation(playerid,"BLOWJOBZ","BJ_COUCH_LOOP_W ",4.0, 0, 0, 0, 0,0);
KillTimer(timer[playerid]);
return 1;
}
Re: how to sitch to the next animation -
omidi - 23.07.2010
Quote:
Originally Posted by DJDhan
You can use a timer but you need to know the length of the first animation. Say the length of the first animation is 3 seconds.
At top of the script:
Код:
new timer[MAX_PLAYERS];;
Then comes your command:
Код:
if(!strcmp(cmdtext,"/ya",true))
{
ApplyAnimation(playerid,"BLOWJOBZ","BJ_COUCH_START_W",4.0, 0, 0, 0, 0,0);
timer[playerid] = SetTimerEx("ana",3010,0,"i",playerid);
return 1;
}
The function:
Код:
ana(playerid)
{
ApplyAnimation(playerid,"BLOWJOBZ","BJ_COUCH_LOOP_W ",4.0, 0, 0, 0, 0,0);
KillTimer(timer[playerid]);
return 1;
}
|
where to put that function
Код:
ana(playerid)
{
ApplyAnimation(playerid,"BLOWJOBZ","BJ_COUCH_LOOP_W ",4.0, 0, 0, 0, 0,0);
KillTimer(timer[playerid]);
return 1;
}
Re: how to sitch to the next animation -
FUNExtreme - 23.07.2010
Note to DJDhan, ana should be a function
@omidi: somewhere outside any other function
Re: how to sitch to the next animation -
omidi - 23.07.2010
warning 203: symbol is never used: "ana"
Re: how to sitch to the next animation -
Яσскѕтая - 23.07.2010
forward ana(playerid);
?
Re: how to sitch to the next animation -
Donny_k - 23.07.2010
You could also use a tick for this then no timers are required, timers bottle neck the sync.