Lua: Inconsistent behavior with actors affected by Disable and SetDelete commands
Actors that affected by Disable
command:
- Can run mwscript
- Can't run lua scripts
- Immediately invalid in Lua, except when you disable object before savegame, then on game load and cell change they becomes valid again
- Always trigger onActorInactive
- Sometimes trigger onActorActive during game load
Actors that affected by SetDelete
command:
- Can't run mwscript
- Can run lua scripts
- Becomes invalid in lua on cell change. Become valid again when you return to original cell
I expected that MWScript and Lua will work on disabled objects, and won't work on deleted objects
Edited by Mikhail