unit leaks

MateoSoetsu

New Member
Reaction score
9
Do units leak?
(casting unit), (last replaced unit), (target unit of ability being cast), etc
Do I have to save these as a temp unit variable and delete them after use, like points/groups. And are they MUI, I've only done testing by myself so far.

I can post a trigger if you need an example of how I use them.
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
> Do I have to save these as a temp unit variable and delete them after use, like points/groups?

No.


> And are they MUI?

Some are.
The three you mentioned not really though.
"Last <whatever>" is only valid until some other action creates the same thing.

Casting event responses, like Casting unit, Target point and Target unit are rather famous for being unstable.
They get lost after waits more often than not, and they tend to "disappear" in triggers that do their own casting.

"Triggering unit" is very stable.
So are most others, like "Dying unit".
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top