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.
[04:57 pm]
Symmetry -- wdym
[02:24 pm]
Apos -- :wob:
[04:16 am]
NudeRaider -- files in c:\program files\ are protected
[08:11 pm]
Symmetry -- why can't I seem to make eud editor change flingy.dat D:
[2026-7-11. : 4:33 pm]
Ultraviolet -- :wob:
[2026-7-10. : 11:00 pm]
Vrael -- :wob:
[2026-7-10. : 5:18 pm]
IskatuMesk -- :wob:
[2026-7-10. : 7:29 am]
Zycorax -- :wob:
[2026-7-10. : 3:48 am]
O)FaRTy1billion[MM] -- :wob:
[2026-7-10. : 3:14 am]
Symmetry -- :wob:
Please log in to shout.


Members Online: Symmetry