Trouble making a bridge.

Started by Zeror, July 30, 2015, 12:59:00 AM

Previous topic - Next topic
I made a sample project just for you and it does work.

Stupid question: do you call the quest manager initialization code at some point? If the sensor metatable is never initialized, your sensors have no effect.

July 31, 2015, 04:53:03 PM #16 Last Edit: July 31, 2015, 04:57:52 PM by Zeror
Quote from: Christopho on July 31, 2015, 04:33:27 PM
I made a sample project just for you and it does work.

Stupid question: do you call the quest manager initialization code at some point? If the sensor metatable is never initialized, your sensors have no effect.
It was not a stupid question. I didn't have quest manager at all. Only a game manager. Code wasn't initialized. Copied that file from your example over to my project.
Got it working right now. Really really thanks for your effort.

Ok nice!

The job of the quest manager is to set up some quest-wide behaviors for entities, like managing all sensors whose name has a particular prefix.
The normal way would be to program sensors on the map script, but sensors that change the layer are so common that it simplifies your life to do it once for all maps.

Yes, i understand that.

As thanks i will release some more info about my project, in this thread.