Game Development Community

T2DTriggerComponentOnEnterDelegate Triggering Invisible Objec

by Randy Johns · in Torque X 2D · 05/02/2008 (12:52 pm) · 2 replies

We are receiving an OnEnter callback for an object that has Visible=false and InheritMountVisibility=false.

Has anyone else experienced this? Is there a fix published? Workaround?
We are using Torque X 1.0.5.1.
Is this fixed in 2.0?

About the author

Recent Threads


#1
05/04/2008 (9:59 am)
This isn't really a bug. In a game, just because something is not visible, doesn't mean it doesn't exist and should hit triggers. Triggers work based on object type. So how about adding a new object type called "typeCollidable" or "typeTriggerHitter" (you get the point) and add that to your player object. Remember that an object can have any number of object types added to it. Then... when you want your player to interact with triggers, add that object type. When you want your player to not hit the trigger, remove that object type from the player.

John K.
#2
05/05/2008 (7:27 am)
Quote:typeTriggerHitter

*cackles*

If that wasn't such a funny variable name, I'd yell at you for putting 'type' in front of that. This isn't C++!