HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

turning tank turret

12-29-2003, 04:08 AM#1
Berserk
we have constructed tank models and have placed it in the game.

But one problem we encountered, is that the turret of the tank sticks to the body. When it attacks, the whole tank turns to that direction and shoot, rather than just turning the turret without turning the body.

I know that the human cannon tower can turn its turret to the target direction and shoot...how do I make that work on my tank?
12-29-2003, 06:28 AM#2
Thunder-Hunter
well maybe the whole tower is a doodad+ movable inside only. This is what I mean

() = Actual tower
| = Doodad

( )
||||||||||||||||||||||||||||||||||||||
|||||||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||


or

( )
|||||||||( )||||||||
|||||||||( )||||||||

Do you get what I mean?

Maybe the cannon is the "Tank" and the actual tower is well something else. Maybe Im wrong or maybe Im right, but the tower doesnt move anyways....
12-29-2003, 09:12 AM#3
EdwardSwolenToe
i think its because its a building and buildings cant move.
12-29-2003, 10:12 AM#4
COOLer
This is beacuse it dose not have a bone named turret . only buldings have them and they only work on buldings as well.
02-09-2004, 11:35 AM#5
Duchmol
I've heard that there is a mod with tank attacking while moving but i dunno if they aim... but they must certainly aim unless it would be quite bad (the tank move and attack units next to him but the the turret doesnt move...). So they did it.. but is creating a invisble object whose trigger périodicly move him to the tank the only way to do it???
02-09-2004, 04:17 PM#6
ubern00b
the game is called tank commanders, it works by making invisible units with the locust ability the follow the tank around, they can only be seen on the minimap. every weapon bought for the tank is just hiring a unit( i think...)
02-09-2004, 06:07 PM#7
Kam
It is possible to make the turret turn while the tank is moving. You have to make a custom attack animation, this requires Maya or 3DMax. The reason a turret on a cannon tower can turn is becuase thats its attack animation. It also has to do with the acual scripting of the tower that allows it to target something no matter where it is. Good luck!
02-12-2004, 09:52 AM#8
Duchmol
i searched all over the web but i didnt find this "tank commander".
can you link me?
02-12-2004, 11:21 AM#9
Cubasis
lol, no kam

The reason that the cannon-tower can aim and shoot, is becouse it's "cannon"s "bone" is called "turret". The game-engine looks through the bones to find it, and automatically aims it towards the target. But this (to my best of knowledge) only works for buildings. Etc, the engine simply doesn't support moving and shooting, as that needs "special" coding on the developers part (blizzard). So, as explained by other people in this thread, this would need to be simulated using triggers, hidden units, and etc.

They neither included a vehicle-like turning, where when the unit wants to turn in another direction it smoothly glides in a curve towards the new destination. That's one of the reasons why the chariot made for the late art contest didn't turn up so well in-game, as when it was moving, and needed to rotate, it would look very bad.
Cubasis