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.
[07:41 pm]
Ultraviolet -- just sent you a message on Discord. I suspect you're probably trying to change unit speeds for units that don't use flingy.dat for movement (like any units that walk instead of hovering/flying). You can change their movement to flingy, but they unfortunately look more like they're gliding than walking when you do that.
[07:31 pm]
Symmetry -- EE2, I've been using setdatfile successfully for units.dat and weapons.dat but the flingy changes don't seem to happen
[05:25 pm]
Ultraviolet -- in EE2 you just open DatEdit, go to the flingy tab, and make whatever changes you want. Though if you want to do dynamic shit, you have to use the trigger editor with the setdatfile action. And of course you have to inject your changes when done. Can give more specific troubleshooting advice if you provide more details
[05:20 pm]
Ultraviolet -- Symmetry
Symmetry shouted: why can't I seem to make eud editor change flingy.dat D:
Are you using EE2 or EE3?
[04:57 pm]
Symmetry -- wdym
[02:24 pm]
Apos -- :wob:
[04:16 am]
NudeRaider -- files in c:\program files\ are protected
[2026-7-11. : 8: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:
Please log in to shout.


Members Online: Vrael, lil-Inferno, Zergy