• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

event for unit is created

Status
Not open for further replies.
Level 4
Joined
Dec 26, 2021
Messages
47
Hi, I'm hoping to make an event which detects when a unit is created, purchased, spawned via trigger etc. Is there any catch all event for this?

Would unit enters region <Playable Map Area> work for this?

Notes on best practive are appreciated, any notes on potential leaks are also appreciated.

Got to run, dad coming home soon.
 
Since you want to cover multiple things at once (creating, purchasing, spawn) the only way that I could think of would be to use Unit Enters playable map area.

Also, what are you planning to do after the unit enters?
Just add it to a unit group depending on its type. I'll have to take a look at the actual implementation of unit spawning and then find the best solution after scoped out more.
 
Status
Not open for further replies.
Back
Top