Game Development Community

How to edit Mis file in Game

by Thanhda Tie · in Torque Game Engine · 07/04/2006 (5:32 pm) · 1 replies

Okay. basically i want to be able to change the value of renderBottomTexture in game, in the console menu. It belongs to the Sky Obj. So basically when i type Sky.renderBottomTexture = 0; it changes the value to 0, BUT! doesnt actually affect the game itself. I did a test to check if the value changed by typing echo( Sky.renderBottomTexture );. I've tried searching this first. but was unsure of what to type in. if anyone knows how to get this working that would be great thanks.

About the author

Digital Shock President & CEO, Thanhda's main role is to direct the business development team, and all other technical development. Thanhda began as a business relations manager & programmer, and has since worked on many projects.


#1
07/04/2006 (6:43 pm)
You have to trigger the inspectPostApply() call back, which notifies the object that something has changed. The inspector does this automagically. You may have to manually expose it to script, or it might already be accessible to you.

In this situation, I'm not sure what use changing that field at runtime will have, but in the general case tweaking fields can be pretty useful. The best way to do so is to expose a simple accessor to script that sets the networking flags to trigger an update.