The docs for Pit:addTrapDoor and Door:addPullChain functions say:
Sadly they would be useful functions for things like on-the-fly generated dungeons or similar situations (and, I won't hide the fact, my treasure chestsThis function is intended to be used internally by the editor. Do not attempt to add a XXX dynamically to a YYY from a script because it may cause problems with save games. This function is listed here only for completeness.
The questions are:
- Is the warning still valid ? I know you have changed many things regarding what's saved and what not and how and I was wondering if this is still the case
- Are they safe to use one-time in a scripting entity outside of any function scope (that is, the code that is auto-run at first startup) ? I ask because this seem to be about the same time dungeon.lua is executed, but you know the details