onstart stuff:
SetEntityConnectionStateChangeCallback("lever_open_01", "openbigdoor");
void openbigdoor(string &in asEntity, int alState)
{
if (alState == 1)
{
SetMoveObjectState("door_valve_open",0.8f);
SetPlayerActive(false);
StartPlayerLookAt("door_valve_open", 2.0f, 2.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);
}