• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Refer to Illusion

Status
Not open for further replies.
Level 18
Joined
May 11, 2012
Messages
2,103
How can I refer to the illusion that has just been created with wand of Illusion item?
When Illusion is created, I want to set it into variable, but how?
I know I can use "Enters Playable Map Area", but is there any other way?
 
No way to refer to illusion inside the trigger where it has been spawned?
Like right after action line where it's created, to put it in var

Nope, as far as I know.
You could alternatively create a local trigger with Specific Unit Event
  • Custom script: call TriggerRegisterUnitEvent (t, udg_u, EVENT_UNIT_SUMMON)
and add the event above. In the local trigger, do whatever you want to, and then destroy the trigger.

If you want to link the illusion the summoning unit, just use a hashtable and Hashtable - Save Unit Handle.
 
Status
Not open for further replies.
Top