🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!
Should the spell target the mirror image when you cast it or does it have no target (press it and you randomly swap with one of them)? The first is trivial, the second is more difficult.
Should the spell target the mirror image when you cast it or does it have no target (press it and you randomly swap with one of them)? The first is trivial, the second is more difficult.
I THINK this works, I haven't tested it. Not sure if the conditions check out since I've never worked with illusions before, but I assume Unit-Type works with illusions.
illusion swap
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Illusion Swap
((Target unit of ability being cast) is an illusion) Equal to True
(Unit-type of (Target unit of ability being cast)) Equal to (Unit-type of (Triggering unit))
(Owner of (Target unit of ability being cast)) Equal to (Owner of (Triggering unit))
Actions
Set tempUnit[0] = (Triggering unit)
Set tempUnit[1] = (Target unit of ability being cast)
-------- - --------
Set tempPoint[0] = (Position of (Target unit of ability being cast))
Set tempPoint[1] = (Position of (Triggering 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.