• 🏆 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!

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