Is it safe to call loadMission( ) during the game?
by Nmuta Jones · in Torque Game Engine · 03/03/2010 (9:03 pm) · 0 replies
I am going to have triggers that load new missions.
I have been typing
in the console.
It works, but when I quit the mission after having loaded it fully, sometimes the game crashes.
My strong suspicion is that some things are not being cleaned up in the process of changing missions.
with any NPCs I have made sure to do missionCleanup.add(%theThing) after adding anything.
So back to my question....
Is it safe to call loadMission( ) during the game?
Or should I be writing a custom function that does several other things before calling loadMission()
?
I have been typing
loadMission("arcane.fx/data/missions/somemission.mis");in the console.
It works, but when I quit the mission after having loaded it fully, sometimes the game crashes.
My strong suspicion is that some things are not being cleaned up in the process of changing missions.
with any NPCs I have made sure to do missionCleanup.add(%theThing) after adding anything.
So back to my question....
Is it safe to call loadMission( ) during the game?
Or should I be writing a custom function that does several other things before calling loadMission()
?
About the author
Lead Developer for MediaBreeze Multimedia