Game Development Community

Hiding objects

by Michael Shah · in Torque Game Engine Advanced · 04/08/2009 (9:08 am) · 1 replies

Hello,

I was wondering how to hide or cloak objects after they have been loaded from my .mis files. I am interested in hiding .dif objects that I am using as collision boxes. I want to hide the objects, but still have them maintain their collision properties.

I'm not sure if I can write the torque script in the .mis mission file, or if I have to call another script as soon as the game is loaded.

Thanks for any help.

#1
04/08/2009 (9:29 am)
I don't think that you can hide a DIF. Try texuring them with NULL or set the structural brushes to collision (you'll still need at least one structural brush for worldspawn export). These will still cast shadows though. I can't remember if you can deselect shadow casting on DIFs or not.

There is a resource for hiding meshes (DTS), but I believe it requires the modding of the engine (and thus a license).