Frictional Games Forum (read-only)

Full Version: Need help again T_T
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hey guys^^

PHP Code:
onstart stuff:
SetEntityConnectionStateChangeCallback("lever_open_01""openbigdoor");

void openbigdoor(string &in asEntityint alState)
     {
         if (
alState == 1)
         {
            
SetMoveObjectState("door_valve_open",0.8f);
            
SetPlayerActive(false);
            
StartPlayerLookAt("door_valve_open"2.0f2.5f"");
            
AddTimer(""9"doortimer");
            
AddTimer(""7"messagetimer");            
        }
    }

void messagetimer(string &in asTimer)
    {
        
SetMessage("Screen""SlideDoor"5.0f);
    }
    
void doortimer(string &in asTimer)
    {
        
StopPlayerLookAt();
        
SetPlayerActive(true);
    } 

well everything works fine but i want to force the player to look there only the first time using the lever (same with the message) is there a possibility to make this? or do i have to delete the stuff :/
use: SetMultiSliderCallback instead Smile

Find about it from wiki!
im out of this T_T cya
o.0? I am confused...
Just add a SetLeverStuckState function. Like this:

PHP Code:
void openbigdoor(string &in asEntityint alState)
     {
         if (
alState == 1)
         {

            
SetMoveObjectState("door_valve_open",0.8f);
            
SetPlayerActive(false);
            
StartPlayerLookAt("door_valve_open"2.0f2.5f"");
            
AddTimer(""9"doortimer");
            
AddTimer(""7"messagetimer");    
            
SetLeverStuckState("lever_open_01"1false);       
        }
    } 

I think this shall work.