Game Development Community

Usage of the script 'save' function for SimBase objects

by Joshua "The Power Nap" Taylor · in Torque Game Engine · 05/04/2003 (8:09 pm) · 1 replies

I'd like to know how to use the save function in SimBase.cc

I have somewhat of an Idea, but I'd like to use it to save a player's position, along with a few other things.

#1
05/05/2003 (12:50 pm)
Take a look at function EditorSaveMission() in EditorGui.cs and the C++ function it calls, ConsoleMethod(SimObject, save

That function creates a *.mis file, which is essentially a script file, and it creates a *.ter file (when saving the terrain) Depending on what you want to save, consider emulating the code that saves one of those two fiels and make your own file, or simply add to those files.