Game Development Community

Question with hover tank and target

by John Smart · in Torque Game Engine · 11/20/2006 (5:57 am) · 2 replies

Hi Guys,

I have got a hover tank up and runing (much like battle zone tanks) with a cannon all works like a dream. my next mission is to mount some missiles on it and be able to get the crosshair to move up and down.

Now i have created my missle pack and DTS and stuff. also added another mount point to my tank model and added more muzzelpoints to the missle box, also got the alt mouse button to fire, but what i want it to do is fire 5, 10, 15, 20 missiles (more than 1).

so my questions are.

1. anyone got a good way of sending a salvo out of a weapon (push button once send x amount of shells)

2. is there something in script that will allow me to move the crosshair up and down in a hover vehical, so i can targe on top of a hill.


if anyone has a view on this and you think i am going about it wrong please let me know also if anyone is interested in my little tank and guns let me know i will send them over. I was thinking of turning it into a resource if i get if finished.

I do have the tank pack and i am going ove rthe code to see how they mount their weapons and see if i can reverse it and get it working.

thanks in advance

John Smart

#1
11/20/2006 (5:34 pm)
I am working on the same thing right now -- fixed turrets on a hover tank with vertical turret control -- although I think you have made more progress than me thus far. :) I downloaded a turret resource and I am trying to figure out what needs to be modified.
#2
11/21/2006 (3:12 am)
To -=Shaun Vantuil=-

Hi, give me a few days and i will tidy up my code and send you what i have so far, if you want it. if you are trying to have twisting turrets (like a normal tank) then i am not sure 1.4.2 supports that, and will need engine changes. My tank does not need twisting turret as it can hover left and right.

Based on what i have been looking at i think the hover object will need tweaking in the engine to support that (which is probably best). I am still going over the tank pack resource code to see if there is a answer there for just doing script without modding the engine.

let me know if you want my resource it is very basic and my model needs to be skinned.

Cheers
John