I may be out of line here, but I have to know if there's a way to set a variable when leaving a certain scene.
One example: I use a map in my game. In the map scene, the inventory is disabled through a simple variable. There are many possible ways to leave the map, and of course I can reset the variable in every script attached to a scene change, to get the inventory back. However, it would be a nice touch if I could reset the variable in the scene_init.script for the map scene every time I exit the scene instead.
I hope I am making myself clear.
Thanks in advance!
Mikael