Game Development Community

Calling an IFL sequence for a weapon

by D B · in Torque Game Engine · 10/30/2005 (5:06 pm) · 3 replies

I have a mesh with an IFL that works fine, as well as another mesh that will have the IFL mesh mounted to it.

When I mount the IFL mesh, it mounts fine, but the IFL doesn't play.

It's probably something simple, but how would I make the IFL animation play?

Thanks.

#1
10/31/2005 (5:37 am)
Are you mounting the ifl mesh as an object or as an image?

Object have a playThread() function, the is often used in ifl objects onAdd() method, to kick off the ifl animation.

As far as I know, Mounted images do not have animation threads assigned to them, so your ifl will not play.

Try mounting your ifl mesh as an object.

-- Markus
#2
10/31/2005 (2:34 pm)
Alright, thanks. I'll go and do that now. :D
#3
10/31/2005 (3:47 pm)
I have tried mounting it as an object, but I have had no luck (perhaps I coded it wrong?). However, I did find a way to have the image play the IFL animations. Someone mentioned it here, if you're interested:

http://www.garagegames.com/mg/forums/result.thread.php?qt=32446