I see thanks.
I was wondering because I have something like this:
-
A unit is attacked:
-
Create a Unit for owner of attacking unit
-
Play last created unit's "spin" animation
-
Wait 0.25
-
Remove Last Created Unit
Now the thing I was concerned about was if "Remove Last Created Unit" would instead remove another unit created in another trigger.
Now for some reason, the last time I did a trigger with:
-
Add an expiration timer to last created, expiring in <x seconds>
If I made the duration shorter than 1 second or something, it would glitch for some reason and cause problems(I forgot what they were though). Not sure if it'll happen again which is why I avoided using an expiration timer in this case.
So I assume the way around this problem would be to set the "Last Created Unit" to a "local unit variable", then wait 0.25 seconds, then removed the unit referring to the local unit variable I made?