Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 2 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with a pipe puzzle
Rownbear Offline
Member

Posts: 157
Threads: 13
Joined: Apr 2011
Reputation: 2
#6
RE: Help with a pipe puzzle

SOLVED: CANT USE 180, only -1, 0, and 1, figured it out self, sorry for useless bump.

Bumping old instead of making new:

I got a problem with a valve for my script, I got one working but it's not working correctly. So am I not using the right script for this? I just want to turn the valve to 180 and the stuff to happen



void OnStart()
{
SetEntityConnectionStateChangeCallback("Valve_1", "MakeAcid");
}

void MakeAcid(string &in asEntity, int alState)
{
if (alState == 180)
{
SetLeverStuckState("Valve_1", 180, true);
SetEntityActive("13_burner_1", true);
AddTimer("Timer", 3.0, "AcidFinished");
}
}


void AcidFinished(string&in asTimer)
{
SetEntityActive("13_burner_1", false);
SetEntityActive("chemical_container_full_1", true);
}

Please Help.

(This post was last modified: 06-26-2011, 01:40 AM by Rownbear.)
06-26-2011, 01:30 AM
Find


Messages In This Thread
Help with a pipe puzzle - by Rownbear - 05-23-2011, 04:14 PM
RE: Help with a pipe puzzle - by Kyle - 05-23-2011, 09:28 PM
RE: Help with a pipe puzzle - by Rownbear - 05-24-2011, 02:03 PM
RE: Help with a pipe puzzle - by SLAMnesia - 06-07-2011, 04:26 PM
RE: Help with a pipe puzzle - by DannieWest - 06-08-2011, 01:19 PM
RE: Help with a pipe puzzle - by Rownbear - 06-26-2011, 01:30 AM
RE: Help with a pipe puzzle - by Kyle - 06-26-2011, 01:49 AM



Users browsing this thread: 1 Guest(s)