The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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


Messages In This Thread
SetLampLit HELP! - by Itskody - 04-06-2011, 07:23 AM
RE: SetLampLit HELP! - by Pandemoneus - 04-06-2011, 11:10 AM
RE: SetLampLit HELP! - by Streetboat - 04-07-2011, 01:39 AM



Users browsing this thread: 1 Guest(s)