Game Development Community

Get time that a trigger will fire in a sequence

by David Massey · in Torque 3D Professional · 06/09/2011 (6:57 pm) · 1 replies

Hey there.. bit stuck on this... anyone know of a way to get the time that a trigger will go off in a sequence?

something like...

for example.. if i have a 10 frame animation with a trigger set on frame 3... if the full animation takes 20 seconds to play.. i need to get back 6.0...

Thanks folks!

#1
06/10/2011 (5:40 am)
Not off the top of my head....triggers are embedded within a DSQ sequence and I don't think there is a way[on the fly] to look into the object.

I think this is all done very early on[during memory loading of objects] in the TSShapeConstructor datablock/singleton. You might have to go upstream and get your onAdd function spitting the information out somewhere....

Good luck on this!