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.
[02:35 am]
Symmetry -- Begone!
[2026-10-24. : 11:00 pm]
Symmetry -- https://i.imgur.com/4kK6tCX.mp4 he dancin'
[2026-10-24. : 6:58 pm]
Symmetry -- :deez:
[2026-10-24. : 6:14 pm]
l)ark_ssj9kevin -- :des:
[2026-10-24. : 6:14 pm]
Symmetry -- ah, desc. I tried dsc and des
[2026-10-24. : 6:13 pm]
l)ark_ssj9kevin -- manually editing URL fixes it https://staredit.net/site/members/0/minerals/desc/
[2026-10-24. : 6:12 pm]
l)ark_ssj9kevin -- ya member list sorting by descending broken for all columns tbh
[2026-10-24. : 5:52 pm]
Symmetry -- https://staredit.net/site/members/0/minerals/asc/ why does it sort by ascending and not descending :hurr: and how did that guy get -963 minerals?
[2026-10-24. : 5:47 pm]
Symmetry -- TFW you go to donate to SEN but you can't anymore :(
[2026-10-24. : 5:12 pm]
Symmetry -- The LLMs are coming for our mineral stocks!
Please log in to shout.


Members Online: Hacksaw222, cloudfancy