Quandry with hiding / unmounting weapon once fired
by David Russell · in Torque Game Engine · 06/19/2005 (7:08 pm) · 3 replies
Hi,
My weapon is a missile launched off a plane. When the weapon is fired the weapon is unmounted so that it looks like the missile leaves the aircraft. Visually, this looks great.
Unfortunately, when a weapon is unmounted, it stops all sound associated with that mount. So I can't use the stateSound to specify the sound to play for firing the weapon.
I think I want to play the sound in the OnFire callback, but I'm not sure how to do this for a 3D sound and associate it with the plane or the projectile's position. Does anyone have some ideas on how to do this? or maybe an alternative solution?
Cheers,
Dave.
My weapon is a missile launched off a plane. When the weapon is fired the weapon is unmounted so that it looks like the missile leaves the aircraft. Visually, this looks great.
Unfortunately, when a weapon is unmounted, it stops all sound associated with that mount. So I can't use the stateSound to specify the sound to play for firing the weapon.
I think I want to play the sound in the OnFire callback, but I'm not sure how to do this for a 3D sound and associate it with the plane or the projectile's position. Does anyone have some ideas on how to do this? or maybe an alternative solution?
Cheers,
Dave.
About the author
Torque 3D Owner Scott Richards