I have added a spell on the Virophage that shoots a projectile at target location. I want the Virophage to turn towards the target when it casts the spell. But it never turns...
It turns when it attacks, but it never turns when it cast any spells.
Try taking a look at the "Nova - Eradicator Railgun Fire" ability and it's related actors. There's an effect called "NovaEradicatorRailgunTurnTurret" that turns the turret. They also use a separate effect to clear the aim afterwards, but personally I just check the flag on the original effect that says "Clear target on aim complete".
I have added a spell on the Virophage that shoots a projectile at target location. I want the Virophage to turn towards the target when it casts the spell. But it never turns...
It turns when it attacks, but it never turns when it cast any spells.
Any idea how to make the Virophage turn?
Try taking a look at the "Nova - Eradicator Railgun Fire" ability and it's related actors. There's an effect called "NovaEradicatorRailgunTurnTurret" that turns the turret. They also use a separate effect to clear the aim afterwards, but personally I just check the flag on the original effect that says "Clear target on aim complete".
Aaaaahhh! Thanks! I looked at it and managed to solve it for my spell now!
In short the Modify Unit type effect can make a turret look at the target.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg