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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Faid In Script
Khyrpa Offline
Senior Member

Posts: 638
Threads: 10
Joined: Apr 2011
Reputation: 24
#2
RE: Faid In Script

////////////////////////////
// Run first time starting map
void OnStart()
{
AddTimer("FadeIn", 5, "FadeIn");
AddTimer("tmrIntro", 10.5f, "IntroMessage2");
AddTimer("tmrIntro", 21.0f, "IntroMessage3");
FadeOut(0.0f);
SetMessage("Messages", "intro1", 10.0f);
}

void IntroMessage2(string &in asTimer)
{
SetMessage("Messages", "intro2", 10.0f);
}

void IntroMessage3(string &in asTimer)
{
SetMessage("Messages", "intro3", 10.0f);
}
void FadeIn(string &in asTimer);
{
FadeIn(3.0f);
}
////////////////////////////
// Run when entering map
void OnEnter()
{

}
////////////////////////////
// Run when leaving map
void OnLeave()
{

}


You have to use (string &in asTimer) after the callbacks name for it to function normally

09-16-2011, 03:43 PM
Find


Messages In This Thread
Faid In Script - by HplGeek - 09-16-2011, 03:23 PM
RE: Faid In Script - by Khyrpa - 09-16-2011, 03:43 PM
RE: Faid In Script - by HplGeek - 09-16-2011, 03:44 PM
RE: Faid In Script - by Your Computer - 09-16-2011, 04:29 PM
RE: Faid In Script - by HplGeek - 09-16-2011, 04:43 PM



Users browsing this thread: 1 Guest(s)