Well, I want to be able to check if a specific unit is dead, and then make an event occur if it is - ideally using only the data editor. Could a search-area effect be used to do this, and if so, would anyone mind explaining how?
An event is the same thing as a trigger, just built into the unit or whatever it is the event is attached to. A trigger would be more ideal for this. What are you trying to do?
I am trying to make an ability in which a small flying unit is spawned beside a building, and if the building is destroyed then the flying unit should be also.
There are units that already use this, such as the broodlord and it's escorts. Just check the event used for that unit and you should be able to replicate it easily.
(Also note that the turrets used in the turret tutorial that are on these forums also use what you are trying to achieve, thats also something you might want to glance at for reference).
Hi,
Well, I want to be able to check if a specific unit is dead, and then make an event occur if it is - ideally using only the data editor. Could a search-area effect be used to do this, and if so, would anyone mind explaining how?
Thanks in advance!
@Circulation: Go
An event is the same thing as a trigger, just built into the unit or whatever it is the event is attached to. A trigger would be more ideal for this. What are you trying to do?
Perhaps use the 'IsDead' validator?
Duplicate the validator : IsDead (Unnamed) : and specify the unit in the Validator : Unit + field from (None):Target to (Marine):Target or whatnot.
@silvermage: Go
I am trying to make an ability in which a small flying unit is spawned beside a building, and if the building is destroyed then the flying unit should be also.
@BorgDragon: Go
That sounds like a good idea - I'll give it a try.
@Circulation: Go
There are units that already use this, such as the broodlord and it's escorts. Just check the event used for that unit and you should be able to replicate it easily.
(Also note that the turrets used in the turret tutorial that are on these forums also use what you are trying to achieve, thats also something you might want to glance at for reference).
@silvermage: Go
Ok, thanks!