Game Development Community

Objects inside Triggers?

by Firas · in Torque Game Engine · 11/18/2004 (2:11 am) · 2 replies

Hello guys

I have a trigger, big one and I have inside it a rock, I need to get the location of that rock when The player enter the trigger, so How can I do that?

how can I access the objects inside the trigger?

Regards

#1
11/18/2004 (2:23 am)
Well isn't the rock stationary? If so you should be able to get the position from the World Inspector.
If you look at the sdk information and look at the scripting tuts, one of the first couple is on triggers and how to use them along with the files needed to execute the tutorial
#2
11/18/2004 (11:31 am)
Look into group triggers. There's a tutorial on this in the documentation. Remember that you can iterate through all objects in a group to find one that you need. Or a better way would be to specify an onTrigger method for the rock itself.