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
Script Help I'm blind to my own errors
CarnivorousJelly Offline
Posting Freak

Posts: 1,196
Threads: 41
Joined: Dec 2012
Reputation: 80
#5
RE: Editing Lights

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.

[Image: quote_by_rueppells_fox-d9ciupp.png]
(This post was last modified: 03-02-2013, 01:48 AM by CarnivorousJelly.)
03-01-2013, 11:56 PM
Find


Messages In This Thread
I'm blind to my own errors - by CarnivorousJelly - 03-01-2013, 08:55 PM
RE: Editing Lights - by NaxEla - 03-01-2013, 09:15 PM
RE: Editing Lights - by Rapture - 03-01-2013, 09:20 PM
RE: Editing Lights - by NaxEla - 03-01-2013, 09:30 PM
RE: Editing Lights - by CarnivorousJelly - 03-01-2013, 11:56 PM



Users browsing this thread: 1 Guest(s)