Difference between revisions of "Loading Level Resources With Lua"

Jump to navigation Jump to search
m
Line 5: Line 5:
====Important things to remember====
====Important things to remember====


These methods do not actually edit how the game reads an embedded Level_''SomeLevel''/''Something''Instances.lua , so these changes only last until the level is unloaded.
These methods do not actually edit how the game reads an embedded Level_''Somewhere''/''Something''Instances.lua , so these changes only last until the level is unloaded.


If you try to reference an object that isn't in the Names table (an object from another level, or one that just doesn't exist, etc) your game will crash. It is not yet known whether your companion's game will crash if you reference an object that only exists in ''your'' Names table; this seems unlikely for most objects, but might happen with networked Trigger types.
If you try to reference an object that isn't in the Names table (an object from another level, or one that just doesn't exist, etc) your game will crash. It is not yet known whether your companion's game will crash if you reference an object that only exists in ''your'' Names table; this seems unlikely for most objects, but might happen with networked Trigger types.

Navigation menu