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
Elevator Rooms
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#2
RE: Elevator Rooms

If you don't get any errors with that, then you're either working on the wrong script or you named your HPS file incorrectly.

As for what you want to achieve: You have to define the ChangeMap collision callback before it'll be called. However, using script areas to detect whether or not a lever has been pulled means you have come to misunderstand how to script for levers. The proper function is SetEntityConnectionStateChangeCallback. Once you have finally defined the callback, you can then move the original ChangeMap function which you have in OnStart to where it belongs: in the state change callback.

Tutorials: From Noob to Pro
06-09-2012, 04:13 AM
Website Find


Messages In This Thread
Elevator Rooms - by Nuclearbones - 06-09-2012, 03:45 AM
RE: Elevator Rooms - by Your Computer - 06-09-2012, 04:13 AM
RE: Elevator Rooms - by Nuclearbones - 06-09-2012, 06:53 AM



Users browsing this thread: 1 Guest(s)