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
Lamp puzzle scripting help
Soon Offline
Member

Posts: 50
Threads: 11
Joined: Sep 2010
Reputation: 0
#1
Lamp puzzle scripting help

Hey,

I'm doing a puzzle in a custom story where there's 4 lamps that have to be lit in a certain sequence to unlock a door. I'm not real sure where to begin with the scripting to make it work the way I want it to.

I want all the candles to be able to be lit before it blows them out showing that it was the wrong sequence. The only part of it I can figure out is that I have to use the on ignite callbacks in the editor. Then from there I'm sure its a super complicated string of if statements. I was looking for a way for it to "check" if a certain lamp has been lit, but all I can find in that department is SET lamp it. There is no GET lamp lit.

I'm starting to wonder if it's even possible. Would GetConnectionStateCallback work? I know it's used for buttons and levers but I'm not sure if it will work on lamp entities or not.

Any help would be appreciated.
10-03-2010, 07:18 PM
Find


Messages In This Thread
Lamp puzzle scripting help - by Soon - 10-03-2010, 07:18 PM
RE: Lamp puzzle scripting help - by Entih - 10-03-2010, 07:40 PM
RE: Lamp puzzle scripting help - by Soon - 10-03-2010, 10:35 PM
RE: Lamp puzzle scripting help - by Entih - 10-03-2010, 11:08 PM
RE: Lamp puzzle scripting help - by Soon - 10-04-2010, 12:58 AM
RE: Lamp puzzle scripting help - by Entih - 10-04-2010, 02:01 AM
RE: Lamp puzzle scripting help - by Soon - 10-04-2010, 03:13 AM
RE: Lamp puzzle scripting help - by Alexander - 10-04-2010, 09:35 AM



Users browsing this thread: 1 Guest(s)