Open davidmarr opened 1 year ago
I think the issue is in the lua code.
it's loading the obj during the script compilation time.
As I understand, the flow is going like this:
So, I'll check the issue reported here, but at first sight, I think it's an issue related to the used lua script, I think it should get the data of the moveable, during OnStart and OnLoad.
If one destroys a moveable object via the
Moveable:Destroy()
method, theMoveable:GetValid()
method will return false. If one saves the game and load it, theMoveable:GetValid()
method will return true. For testing, I created a luaDestroyMoveable
function called from a volumehttps://github.com/MontyTRC89/TombEngine/assets/116632612/ec617c4b-e527-43c6-a149-af6ed427ca0b