|
Fizgar Magician
Joined: 07 Feb 2002 Posts: 333 Location: Central Virginia
|
Posted: Wed Sep 15, 2010 6:54 am
[3.26] Package Editor: Mapper Room Scripts Object - Disable won't work fully. |
While trying to figure out what is causing my English directions package to fail, I noticed the following. In the Package editor, if you disable the mapper object (where your room scripts are in the tree) room scripts will still when you enter a room.
How I reproduced:
1. Open untitled session.
2. Open mapper.
3. Create two rooms.
4. Go to properties of one room and edit scripts for that room.
5. In the enable script tab enter #beep and save.
6. Click on the main map object of in the package editor (the little piece of parchment with squares on it) and disable it.
7. Close Package editor.
8. Go to the map and set current position in each of the two rooms a time or two till you hear the beep.
It looks like to me if you disable the main mapper object this should not be happening. Any triggers or aliases you have in that's rooms folder do seem to be disabled however. |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Wed Sep 15, 2010 4:16 pm |
Confirmed and added to the bug list. The mapper is enabling and disabling the room objects (which execute their OnEnable and OnDisable scripts) without checking to see if they are within any other disabled class or map object.
|
|
|
|
Moo Apprentice
Joined: 10 Apr 2009 Posts: 145
|
Posted: Wed Sep 15, 2010 9:35 pm |
That could explain why my OnEnable scripts in a different session were firing before I moved them all into a shared package.
|
|
|
|
|
|