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
SetLampLit HELP!
Itskody Offline
Member

Posts: 100
Threads: 30
Joined: Mar 2011
Reputation: 1
#1
SetLampLit HELP!

alright so when i try to load my map, it crashes and says that ALL of my SetLampLit didnt have matching signatures, this is my script
PHP Code: (Select All)
void LightsOut(string &in entity)
{
    
SetLampLit("candlestick_floor_red_1"false"");
    
StartPlayerLookAt("candlestick_floor_red_1"1020""); 
    
PlaySoundAtEntity("""react_breath_slow.snt""Player"0false);
    
AddTimer("1"0.5f"NoLights");
    
AddTimer("2"1.0f"NoLights");
    
AddTimer("3"1.5f"NoLights");
    
AddTimer("4"2.0f"NoLights");
    
AddTimer("5"2.5f"NoLights");
    
AddTimer("6"3.0f"NoLights");
    
AddTimer("7"3.5f"NoLights");
}

void NoLights(string &in asTimer)
{
    if(
asTimer == "1"){
        
PlayGuiSound("player_cough.snt"0.7f);
        
StopPlayerLookAt();
    }
    else if(
asTimer == "2"){
        
StartPlayerLookAt("candle_floor_1"1020""); 
        
SetLampLit("candle_floor_1"false"");
    }
    else if(
asTimer == "3"){
        
StopPlayerLookAt();
        
StartPlayerLookAt("candle_floor_2"1020"");
        
SetMessage("Messages""???"3.0f);
        
SetLampLit("candle_floor_2"false"");
    }
    else if(
asTimer == "4"){
        
StopPlayerLookAt();
        
StartPlayerLookAt("candle_floor_3"1020"");
        
PlayGuiSound("react_breath_slow"0.7f);
        
SetLampLit("candle_floor_3"false"");
    }
    else if(
asTimer == "5"){
        
StopPlayerLookAt();
        
StartPlayerLookAt("candle_floor_4"1020"");
        
SetLampLit("candle_floor_4"false"");
    }
    else if(
asTimer == "6"){
        
StopPlayerLookAt();
        
StartPlayerLookAt("candlestick_floor_red_2"1020"");
        
SetLampLit("candlestick_floor_red_2"false"");
    }
    else if(
asTimer == "7"){
        
StopPlayerLookAt();
    }

What is wrong with the SetLampLit. i dont know what to change to make it work, or what i did wrong.
04-06-2011, 07:23 AM
Find
Pandemoneus Offline
Senior Member

Posts: 328
Threads: 2
Joined: Sep 2010
Reputation: 0
#2
RE: SetLampLit HELP!

Because the signature is
void SetLampLit(string& asName, bool abLit, bool abEffects);
but you got
string&, bool, string&

04-06-2011, 11:10 AM
Find
Streetboat Offline
Posting Freak

Posts: 1,099
Threads: 40
Joined: Mar 2011
Reputation: 56
#3
RE: SetLampLit HELP!

yeah basically just change the "" at the end of your SetLampLit lines to say false. No quotes.

[Image: signature-2.png]
04-07-2011, 01:39 AM
Find




Users browsing this thread: 2 Guest(s)