The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
events in an order
THE/ILL/WILL Offline
Junior Member

Posts: 11
Threads: 4
Joined: Dec 2010
Reputation: 0
#1
events in an order

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 Sad

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
(This post was last modified: 01-17-2011, 10:41 AM by THE/ILL/WILL.)
01-17-2011, 10:21 AM
Find


Messages In This Thread
events in an order - by THE/ILL/WILL - 01-17-2011, 10:21 AM
RE: events in an order - by GraphicsKid - 01-17-2011, 08:25 PM
RE: events in an order - by Frontcannon - 01-17-2011, 11:48 PM
RE: events in an order - by THE/ILL/WILL - 01-17-2011, 11:46 PM



Users browsing this thread: 1 Guest(s)