• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

How to make a 2-Part Unit System for Tanks

Level 6
Joined
Jun 24, 2024
Messages
67
Hi Guys,

I'm currently testing and trying to make a unit with head and body like a tank for a map.
The body and head should be separate to turn/rotate in different directions and be aimable via left click for the turret and movement controls via WASD for example.
To fire i would like to have a dummy projectile like shockwave (hitscan), I'm not capable to create a fully working custom projectile system sadly.
The obvious choice in the beginning for me was to make the turret a unit teleporting on top of the body every other millisecond and be locust to remove the click/hitbox.
This comes with various problems tho, not to mention the jittering.

While googling for answers, i found this older post: [Trigger] - how to make a Tank Turret System???
The used system seems very nice and very complex. It uses autoaim of sorts, how could i create a similar system which instead reacts to ability inputs?

Edit: The model in the example map seems to be in one piece, i cant figure out how the create made it rotate and keep its rotation like this :)

Best Regards
SMorc
 
Last edited:
This is possibly since it has body and head parts, thanks!
But now i use a dummy for the location, the turret then snaps instantly to the targeted point (where the unit is created for a fraction of a second. Can i somehow simulate turret traverse speeds?
 
Back
Top