Game Development Community

Activate/Deactivate Shapes and Interiors

by Thomas Bang · in Torque Game Engine · 12/01/2007 (4:19 am) · 1 replies

Hi

Is there a way to activate and deactivate Shapes and Interiors?
I know there is a Scenemanagement in TGE but it could be useful to activate/deactivate Shapes and Interiors at runtime manually.

Thanks

Thomas


Edit: I found it... %obj.setHidden(false); // or true

This works only with Shapes... not with StaticShapes and Interiors.
Any solution?

#1
01/01/2008 (5:29 pm)
Uhm, if you just want them out of the way completely, you could write a little function that shifts the Z coordinate by something like -1000 and back again.
Don't know if that works currently but when modding for tribes that's what I did.