Preventing weapon fire when underwater
by Ronald J Nelson · in Torque Game Engine · 12/08/2007 (8:56 pm) · 3 replies
I want to prevent my weapons from firing when underwater. Has anyone else done this that can throw me a pointer?
I don't know if any of you caught that MythBusters episode, but unless you are shooting a small high velocity round, the bullet pretty much stops almost immediately in water, it might get a few feet. I have modified my code so it just explodeds on the surface of the water. It does look a lot better. I just want to prevent firing while underwater.
Thanks for any help you can give me.
I don't know if any of you caught that MythBusters episode, but unless you are shooting a small high velocity round, the bullet pretty much stops almost immediately in water, it might get a few feet. I have modified my code so it just explodeds on the surface of the water. It does look a lot better. I just want to prevent firing while underwater.
Thanks for any help you can give me.
Torque Owner Tim Heldna
I don't have time to break this down for you but if it helps here's an old state system of one of my sniper rifles. Some of it is custom stuff that won't be relevant so you'll need to filter that out.
Hope that helps.