Game Development Community

Help in making objects disappear

by Kunalvardhan · in Torque Game Engine · 01/23/2007 (10:08 pm) · 2 replies

Hi friends i am a newbie over here i am trying to make a simple game where i run to or into a object it disappears its based on the introductory tutorials by torque and it works with the torque symbol but when i use another dts object i just walk through it . it does not disaapear. please please help me
thanks

#1
01/24/2007 (1:38 am)
I think what your missing is defining that .dts object. For example in server/scripts put a .cs file called anything you want and put something similar to
datablock StaticShapeData(Fence1)
            {
                category = "Targets";
                shapeFile = "~/data/shapes/NewModels/gilman_r010/final/fence_001_tge.dts";
            };

and exec it in game.cs.

Hope that's what you needed.
#2
01/24/2007 (1:48 am)
Make sure your .DTS has a collision mesh set up properly. That was my headache for a few hours.

Tony