hay guys im messing around with in game cut scenes and i have a few bits of cannibalized code that isent working for my haha anyone have any pointers on what im not understanding? the problem is its not switching to the next else if
void Time_Tele(string &in asTimer)
{
int lState = GetLocalVarInt("Teleport");
AddLocalVarInt("Teleport",1);
float fNextEventTime = 1.0f;
bool bPause = true;
//--------------------------------------------
//#1
if(lState ==0)
{
FadeIn(3.0f);
SetPlayerMoveSpeedMul(0.35f);
SetPlayerRunSpeedMul(0);
FadeSepiaColorTo(1,1);
fNextEventTime = 5.0f;
}
//----------------------------------------------
//#2
else if(lState ==1)
{
FadeOut(2.0);
}
if(bPause==false)
AddTimer("Teleport", fNextEventTime, "TimeTele");
}
///////////////
nm i solved my problem i just put in a tun of timers for each one