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!
How about when the unit is ordered a Flamestrike, it gets redirected to attack a dummy unit at the target position and when doing this, you set a flag to ignore next order and again change to Flamestrike. Or better let the Flamestrike be casted by another dummy and keep tower busy so it won't immediately change back.
This one was tricky, but I got it working. Since the part that moves is a bone and we know that turrets have a bone called "bone_turret" (unlike units having "bone_head"), we will use the SetUnitLookAt() function, which is the GUI: Animation - Lock Body-part facing.
An example is shown below:
Order
Events
Unit - A unit Is issued an order targeting a point
Conditions
(Issued order) Equal to (Order(flamestrike))
Actions
Custom script: local real x = GetOrderPointX()
Custom script: local real y = GetOrderPointY()
Custom script: set bj_lastCreatedUnit = CreateUnit (GetTriggerPlayer(), 'h000', x, y, 0)
In case you wonder why I used Jass instead of the GUI action, the GUI action translates "head" to "bone_head", when we needed "bone_turret" and Jass allows us to change that string.
Is there a way to disable other abilities while the unit is casting this? I ask because the unit I'm using can transform using the robogoblin ability and when it does so the turret gets locked facing the position it last fired until it transforms again.
It would also be better if it didn't give vision via the dummy unit.
Is there a way to disable other abilities while the unit is casting this? I ask because the unit I'm using can transform using the robogoblin ability and when it does so the turret gets locked facing the position it last fired until it transforms again.
You can try
1) Detecting the transformation and resetting the facing.
2) Remove the transform when an ability is cast, add when the spell finihes/stops.
3) Use channel as base ability and et Disable other abilities to true.
4) Detect the transform order and override it.
It would also be better if it didn't give vision via the dummy unit.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.