Game Development Community

Triggers Question

by Thomas Vanhoutte · in Torque Game Engine · 04/09/2008 (8:47 pm) · 2 replies

Hi.
Ive been trying to get a Trigger to get data from the dynamic field obj and delete the object from that.. I have evrything working except that the trigger cannot get data from the dynamic field. Why?
Thanks for any help.

#1
06/13/2009 (7:06 pm)
I am having the exact same problem. I am trying to use a couple triggers in my level to show and hide sets of objects by referencing their dynamic fields. I am kind of trying to reference them this way as I reference classes in T2D. like if(%obj.dynamicfield $= 1) %obj.sethidden(true)
#2
06/14/2009 (5:58 am)
Thomas - it would help if we could see exactly whaat you're doing in your scripts. There could be any number of reasons why you can't access th object's dynamic fields.
BCS200 - you might want to use '==' instead of '$=', since the latter is reserved for comparing strings. But aside from that, you should be on the right track.