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