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?
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#2
RE: Fatal Error when loading Custom Story?

Just remove the ; in the else and after the Variable. Like this:


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

void OnEnter()
{

}

void OnLeave()
{ 

}

void Func1(string &in asParent, string &in asChild, int alState)
{
SetLampLit("candlestick01_1", false, true);
SetLightVisible("PointLight_1", false); 
AddLocalVarInt("lamplit", 1);
check();
}

void Func2(string &in asParent, string &in asChild, int alState)
{
SetLampLit("candlestick_floor_2", false, true);
SetLightVisible("PointLight_11", false);
AddLocalVarInt("lamplit", 1);
check();
}

void Func3(string &in asParent, string &in asChild, int alState)
{
SetLampLit("candlestick_floor_1", false, true);
SetLightVisible("PointLight_12", false);
AddLocalVarInt("lamplit", 1);
check();
}

void Func4(string &in asParent, string &in asChild, int alState)
{
SetLampLit("candlestick02_1", false, true);
AddLocalVarInt("lamplit", 1);
check();
}

void Func5(string &in asParent, string &in asChild, int alState)
{
SetLampLit("candlestick02_2", false, true);
SetLightVisible("PointLight_13", false);
AddLocalVarInt("lamplit", 1);
check();
}
void check()
{
if(
GetLocalVarInt("lamplit")==5)
    {
    
FadeOut(2);
    }
else
{

}
} 

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
05-04-2013, 04:19 PM
Find


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



Users browsing this thread: 1 Guest(s)