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
Fatal Error when loading Custom Story?
FurtherGames Offline
Member

Posts: 72
Threads: 23
Joined: Apr 2013
Reputation: 1
#3
RE: Fatal Error when loading Custom Story?

(05-04-2013, 04:19 PM)The chaser Wrote: Just remove the ; in the else and after the Variable. Like this:


PHP Code: (Select All)
void OnStart()
{
    
AddEntityCollideCallback("Player""ScriptArea_4""Func1"true0);
    
AddEntityCollideCallback("Player""ScriptArea_5""Func2"true0);
    
AddEntityCollideCallback("Player""ScriptArea_6""Func3"true0);
    
AddEntityCollideCallback("Player""ScriptArea_7""Func4"true0);
    
AddEntityCollideCallback("Player""ScriptArea_8""Func5"true0);
    
SetLocalVarInt("lamplit"0);
    
}

void OnEnter()
{

}

void OnLeave()


}

void Func1(string &in asParentstring &in asChildint alState)
{
SetLampLit("candlestick01_1"falsetrue);
SetLightVisible("PointLight_1"false); 
AddLocalVarInt("lamplit"1);
check();
}

void Func2(string &in asParentstring &in asChildint alState)
{
SetLampLit("candlestick_floor_2"falsetrue);
SetLightVisible("PointLight_11"false);
AddLocalVarInt("lamplit"1);
check();
}

void Func3(string &in asParentstring &in asChildint alState)
{
SetLampLit("candlestick_floor_1"falsetrue);
SetLightVisible("PointLight_12"false);
AddLocalVarInt("lamplit"1);
check();
}

void Func4(string &in asParentstring &in asChildint alState)
{
SetLampLit("candlestick02_1"falsetrue);
AddLocalVarInt("lamplit"1);
check();
}

void Func5(string &in asParentstring &in asChildint alState)
{
SetLampLit("candlestick02_2"falsetrue);
SetLightVisible("PointLight_13"false);
AddLocalVarInt("lamplit"1);
check();
}
void check()
{
if(
GetLocalVarInt("lamplit")==5)
    {
    
FadeOut(2);
    }
else
{

}


Yours doesn't look that different to mine, but it did the trick! Thanks so much![/b]
05-04-2013, 04:34 PM
Find


Messages In This Thread
RE: Fatal Error when loading Custom Story? - by FurtherGames - 05-04-2013, 04:34 PM



Users browsing this thread: 2 Guest(s)