Game Development Community

Excluding object properties from mission file?

by Justin Tolchin · in Torque Game Engine · 04/13/2005 (4:22 pm) · 2 replies

Hi all,

Quick question: when I modify a scene using the Mission Editor and then save the mission file, a lot of fields on the mission objects get saved that I don't really want in there. I'm referring to dynamically assigned fields from the script. Is there a way to prevent this?

For example, I have an SimObject "foo" that I added to the mission from the mission editor. During the running of the game, I dynamically add a field "bar" to that object. If I then open up the Mission Editor again, change something, and re-save the mission, that "bar" field ends up as part of the object, which I don't want. It's cluttering up my mission file. :-(

Thanks!

#1
04/13/2005 (7:45 pm)
There's no native support for this in Torque, but you could pretty easily implement a flagging system so that you can mark fields as interesting or not for saving...
#2
04/14/2005 (9:25 am)
Ok. Thanks, Ben!