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
Script Help Stuck at a lever script
Soskot Offline
Junior Member

Posts: 4
Threads: 1
Joined: Mar 2013
Reputation: 0
#3
RE: Stuck at a lever script

Thanks for the reply.
Will this also reset the state if I do the wrong combination, so I just can't do up and down on all levers and the puzzle is solved?

Edit: After testing it out, I noticed that the puzzle doesn't even work now.
The lamps doesn't lit whenever their states are as they should.

void LeverStateChange(string &in entity, int state)
{
    if((GetLeverState("lever_small01_1") == 1) && (GetLeverState("lever_small01_2") == -1) && (GetLeverState("lever_small01_3") == -1)) {
        SetLampLit("torch_custom_blue_1", true, true);
SetLampLit("torch_custom_blue_2", true, true);
SetLampLit("torch_custom_blue_3", true, true);
SetLampLit("torch_custom_blue_4", true, true);

    }
}
(This post was last modified: 03-28-2013, 06:26 PM by Soskot.)
03-28-2013, 05:54 PM
Find


Messages In This Thread
Stuck at a lever script - by Soskot - 03-28-2013, 04:23 PM
RE: Stuck at a lever script - by NaxEla - 03-28-2013, 05:20 PM
RE: Stuck at a lever script - by The chaser - 04-08-2013, 06:01 PM
RE: Stuck at a lever script - by NaxEla - 04-08-2013, 06:05 PM
RE: Stuck at a lever script - by Soskot - 03-28-2013, 05:54 PM
RE: Stuck at a lever script - by Soskot - 04-08-2013, 05:21 PM
RE: Stuck at a lever script - by The chaser - 04-08-2013, 06:08 PM
RE: Stuck at a lever script - by Soskot - 04-08-2013, 06:39 PM
RE: Stuck at a lever script - by The chaser - 04-08-2013, 06:55 PM
RE: Stuck at a lever script - by TheGreatCthulhu - 04-08-2013, 09:31 PM



Users browsing this thread: 3 Guest(s)