• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Switch with mirror image?

Status
Not open for further replies.
Level 4
Joined
Jul 25, 2005
Messages
48
How would I go about creating a mirror image spells and when the spell is cast the Caster gets an ability to switch places with the mirror image? Or if that is to hard just be able to teleport to the image.
 
Level 10
Joined
Aug 8, 2004
Messages
562
i think you might be able to do that with a trigger that every .01 seconds a (point) variable is set to the position of the caster and the image.
and then you can add the spell to the hero (this is easy) and make a trigger that when the caster starts the spell he is instantly moved to the image's variable and the image is moved to the caster's variable.

if that seems a little too complicated i can make it for you.


~iplaystarcraft
 
Level 11
Joined
Jul 20, 2004
Messages
2,760
That's a problem because you need to track the mirror image. You can pick every unit around the caster which is an illusion and whose unit type is equal with the one of the caster. Then get the mirror unit in a variable and give the caster a dummy unit. Everytime the caster casts the ability you switch positions, getting both positions into variables and moving caster to illusion and illusion to caster.

~Daelin
 
Level 11
Joined
Jul 20, 2004
Messages
2,760
I have thought about this and I came to a conclusion. It is possible to detect the illusion. You would need something like this:

Event - An Unit is Being Summoned
Conditions - (Summoned Unit) is an illusion equal to true
- (Casting Unit) has YourMirror equal to true

And then the mirror image is just the summoned unit. This worked for Water Elemental spell, so it should work for Mirror Image too.

~Daelin
 
Status
Not open for further replies.
Top