I think I have it right this time... or I thought I did.
void timer_fade(string &in strTimer)
{
if(GetLocalVarInt("IsPlayerInArea") == 1)
{
FadeOut(0.5);
AddTimer("Teleport_1", 0.5f, "teleport_timer");
AddTimer("Ghosts_On", 3.5f, "ghosts_visible");
SetLocalVarInt("VisionTriggered", 1);
}
}
void teleport_timer(string &in strTimer)
{
TeleportPlayer("Vision_Start");
FadeIn(2);
}
void ghosts_visible(string &in asTimer)
{
FadeLightTo("Piano", 1.000f, 0.517f, 0.225f, 0.000f, 0.75f, 0.5f);
FadeLightTo("Violin", 0.552f, 0.793f, 1.000f, 0.000f, 0.75f, 1.0f);
FadeLightTo("CelloI", 1.000f, 0.567f, 0.413f, 0.000f, 0.75f, 1.5f);
FadeLightTo("CelloII, 1.000f, 0.655f, 0.749f, 0.000f, 0.75f, 2.0f);
}
Ran the script in-game (pre-loaded so I could get the error messages) and it said "main (107,2) : ERR : Unexpected end of file". The end of the script file looks like this:
void teleport_timer02(string &in strTimer)
{
TeleportPlayer("Vision_End");
FadeIn(2.5);
}
void OnLeave()
{
}//<~ (107,2) right here (ignoring the stuff inside the "//", which I just added) //
The only change I made was to add the "ghost_visible" timer.
I feel like I'm playing a game of "spot the errors"... I'm sure there must be a million I've made.