Game Development Community

Non-selectable scene objects

by Jari · in Torque Game Engine · 11/23/2006 (5:29 am) · 3 replies

Hi,
I'm having a problem with some objects in the editor which are so large that they cover other objects and they get selected instead of the smaller objects. One such object is the fxReplicatorBlocker which I have integrated to the engine from the resource here in GG's site. You see it covers a big area making it almost impossible to select the objects inside the fxReplicatorBlocker's area.

So my question is, is there some way you can make it completely non-selectable by the mouse clicks?

#1
12/30/2006 (11:20 am)
Hey Jari. I'm not sure if you ever figured this out, but the WorldEditor has this functionality.

If you view SDK\example\creator\editor\EditorGui.cs, you can find the following:

function WorldEditor::init(%this)
{
   // add objclasses which we do not want to collide with
   [b]%this.ignoreObjClass(TerrainBlock, Sky, AIObjective);[/b]

   //...rest of function

Without this line, you could select and move the Terrain and Sky in the WorldEditor.

This is probably something you want to look at.
#2
12/30/2006 (11:29 am)
Thank you Michael, that's exactly what I needed!
#3
12/30/2006 (11:31 am)
Happy to help...