Is there actually a way to register sold units using that function?
Like, it would only work with preset units, no matter what I do ...
I tried using game cache, using global variables.....no use...
Sighs...
You can register the event mid-game, whether creating a new trigger and adding the event or adding the event to a premade trigger. What part are you having a problem with?
Just something to keep in mind with this, there will be a delay. I did some tests and most times it took the game 0.135 seconds to register a unit nearby, so yeah....just tossing it out there that it won't be instantaneous.
You can register the event mid-game, whether creating a new trigger and adding the event or adding the event to a premade trigger. What part are you having a problem with?
I tried to "enable" the trigger 20 secs after the game initialization, wouldn't it mean the same?