Staredit Network > Forums > SC2 Assistance > Topic: [Solved] Any Unit Dies - Unit type?
[Solved] Any Unit Dies - Unit type?
This topic is locked. You can no longer write replies here.
Sep 4 2010, 12:25 pm
By: Deev  

Sep 4 2010, 12:25 pm Deev Post #1



I'm trying to create an event that triggers when a unit type dies, but how do I pull that of. I can't assign the unit that dies, to a specifik unit, since there will be spawning more. I tried to make a variable of (Unit Type) and assign it to (Drones) but I can't select that in the "[Any] unit die" -- I'm sure this is a simple thing to do if you know how :)



None.

Sep 4 2010, 1:39 pm Riney Post #2

Thigh high affectionado

Code
Drone Dies
   Events
       Unit - (Triggering unit) dies
   Local Variables
   Conditions
       (Unit type of (Triggering unit)) == Drone
   Actions


Or in other words.

Event
Unit - Unit Dies

Condition
Unit - Unit type of unit

Then fill in the parameters as shown above, then make it do your actions.



.riney on Discord.
Riney on Steam (Steam)
@RineyCat on Twitter

Sure I didn't pop off on SCBW like I wanted to, but I won VRChat. Map maker for life.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[10:20 pm]
anoeth47 -- Sweet
[07:48 pm]
NudeRaider -- https://staredit.net/381642/ really makes you appreciate (again) how good sc music is.
[2026-4-18. : 3:57 am]
NudeRaider -- https://staredit.net/381600/ You have 5 minutes, then you can only edit your posts.
[2026-4-17. : 4:05 pm]
NudeRaider -- DarkenedFantasies
DarkenedFantasies shouted: you eat lots of beans
:lol:
[2026-4-17. : 11:30 am]
NudeRaider -- I would like 3000 minerals, please
[2026-4-16. : 7:32 pm]
Zoan -- I got $2000 bonus. I would like 2000 minerals, please
[2026-4-16. : 4:15 am]
DarkenedFantasies -- you eat lots of beans
[2026-4-16. : 3:46 am]
IskatuMesk -- how do i get gas
Please log in to shout.


Members Online: anoeth47, Rawflesh0615