So, I wanted to try and give the Hellbat a bit more microability and to do this I decided that giving it a pseudo-moving shot like the Siege Tank in SC1 would do the trick. Since the Hellbat has no actual turret though, this is a bit hard. Because AoE splash pops out from the relative front of a unit and because the Hellbat has no actual turret built into the model, you can't do the usual work around to this. So I decided making a simple trigger that will constantly make the Hellbat face the closet enemy target would work, otherwise it just faces the direction it's moving. But I am having some issues getting it up and running. The Hellbat finds ONE unit on the entire map and makes that unit it's forever-facing unit. And if the Hellbat is closer to the top of the map then this picked unit it just faces itself.
Here is my trigger:
[OLD]
Also I think this site should get a code thing like Hive Workshop has with WC3 GUI triggers.
EDIT: Basically, Michael Jackson Hellbats.
EDIT2: Okay, here's the actual thing "Finished" but Hellbats will spazz out if more then 1 unit is nearby so I need to find a way to make them pick 1 unit and stick to that one unit unless told otherwise.
This is nonsense, the minimum timer period is "0.0625 seconds of Game Time".
Can units even face the direction they are not moving? I know that you can get weapons to allow them to slide to a stop (used by banshee) however I am not sure if you can still have a unit walk to a destination and physically face another direction at the same time.
The issue with your trigger appears to be you iterating through newly constructed groups of units all the time. You need to create a mapping between a hellbat and a target such that it only changes target when out of range. To do this I would recommend using some dummy behaviour just to link the hellbat to the target instead of constantly trying to find a new target.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
So, I wanted to try and give the Hellbat a bit more microability and to do this I decided that giving it a pseudo-moving shot like the Siege Tank in SC1 would do the trick. Since the Hellbat has no actual turret though, this is a bit hard. Because AoE splash pops out from the relative front of a unit and because the Hellbat has no actual turret built into the model, you can't do the usual work around to this. So I decided making a simple trigger that will constantly make the Hellbat face the closet enemy target would work, otherwise it just faces the direction it's moving. But I am having some issues getting it up and running. The Hellbat finds ONE unit on the entire map and makes that unit it's forever-facing unit. And if the Hellbat is closer to the top of the map then this picked unit it just faces itself.
Here is my trigger:
[OLD]
Also I think this site should get a code thing like Hive Workshop has with WC3 GUI triggers.
EDIT: Basically, Michael Jackson Hellbats.
EDIT2: Okay, here's the actual thing "Finished" but Hellbats will spazz out if more then 1 unit is nearby so I need to find a way to make them pick 1 unit and stick to that one unit unless told otherwise.
Hellbat Group and HBat_Index are GLOBAL variable. Ignore the Debug text.
EDIT3: Done for the night.
SC2Mapster Unofficial Discord! - https://discord.gg/DXENztk
I believe there's an event for unit acquires target. I imagine that would be able to accomplish what you want more efficiently.
This is nonsense, the minimum timer period is "0.0625 seconds of Game Time".
Can units even face the direction they are not moving? I know that you can get weapons to allow them to slide to a stop (used by banshee) however I am not sure if you can still have a unit walk to a destination and physically face another direction at the same time.
The issue with your trigger appears to be you iterating through newly constructed groups of units all the time. You need to create a mapping between a hellbat and a target such that it only changes target when out of range. To do this I would recommend using some dummy behaviour just to link the hellbat to the target instead of constantly trying to find a new target.