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
HplGeek Offline
Junior Member

Posts: 17
Threads: 8
Joined: Sep 2011
Reputation: 0
#1
Faid In Script

My map worked this far:
It faids out > Some Information text appears > (fails here) I want the screen to faid in again.
Have been trying to fix this for about 35 minutes now, and descided to write a post here
about it. Dodgy

////////////////////////////
// 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(float afTime);
{
FadeIn(3.0f);
}
////////////////////////////
// Run when entering map
void OnEnter()
{

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

}
(This post was last modified: 09-16-2011, 03:38 PM by HplGeek.)
09-16-2011, 03:23 PM
Find
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
HplGeek Offline
Junior Member

Posts: 17
Threads: 8
Joined: Sep 2011
Reputation: 0
#3
RE: Faid In Script

Ah! Work´d Thanks




(This post was last modified: 09-16-2011, 03:47 PM by HplGeek.)
09-16-2011, 03:44 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#4
RE: Faid In Script

(09-16-2011, 03:44 PM)HplGeek Wrote: Ah! Work´d Thanks

You might also want to remove the semi-colon from that function definition.

Tutorials: From Noob to Pro
09-16-2011, 04:29 PM
Website Find
HplGeek Offline
Junior Member

Posts: 17
Threads: 8
Joined: Sep 2011
Reputation: 0
#5
RE: Faid In Script

Ah noticed (: Thanks


(This post was last modified: 09-16-2011, 04:47 PM by HplGeek.)
09-16-2011, 04:43 PM
Find




Users browsing this thread: 1 Guest(s)