Frictional Games Forum (read-only)

Full Version: Faid In Script
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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()
{

}
////////////////////////////
// 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
Ah! Work´d Thanks




(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.
Ah noticed (: Thanks