| 03-26-2007, 06:55 AM | #1 |
How do i detect the units made by mirror image and make them do stuff? |
| 03-26-2007, 08:33 AM | #2 |
JASS:call IsUnitIllusion(GetLastCreatedUnit()) |
| 03-26-2007, 12:56 PM | #3 |
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 |
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 |
