HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Mirror Image

03-26-2007, 06:55 AM#1
Shinzui
How do i detect the units made by mirror image and make them do stuff?
03-26-2007, 08:33 AM#2
Blackroot
Collapse JASS:
call IsUnitIllusion(GetLastCreatedUnit())
It's just a unit so the orders are no different.
03-26-2007, 12:56 PM#3
Rising_Dusk
Units created by mirror image do not set GetLastCreatedUnit().

Use the EVENT_UNIT_SUMMONED event to detect when a unit is summoned, then check that the summoning unit is of type (whatever your caster is) and that IsUnitIllusion(GetSummonedUnit()) == true.
That will give you the images you need.
03-26-2007, 03:47 PM#4
Toadcop
or you create a trigger with "Unit Enter Region Event" and check if this unit got needed ability ID (the buff of mirror image) or check IsUnitIllusion(GetTriggerUnit()) == true