Basically what I need is a unit dies event, but it only checks if buildings die. There is no function for buildings in the menu for it so I'm assuming your going to need some bit o' galaxy to make it work? I know I could just create a condition to check if the triggering unit is a buildings(in my case it's only one building) but afaik the trigger would fire whenever any unit dies and THEN check if it was the unit I want. Wouldn't that create a ton of trigger traffic or whatever? BTW this is for a type of unit spawning/massing map so there is definitely going to be a lot of things dieing. Please explain/help :)
I know I could just create a condition to check if the triggering unit is a buildings(in my case it's only one building) but afaik the trigger would fire whenever any unit dies and THEN check if it was the unit I want. Wouldn't that create a ton of trigger traffic or whatever?
Premature optimization is the root of all evil.
(Yes, that's how to implement it. No, it's not going to affect performance.)
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Basically what I need is a unit dies event, but it only checks if buildings die. There is no function for buildings in the menu for it so I'm assuming your going to need some bit o' galaxy to make it work? I know I could just create a condition to check if the triggering unit is a buildings(in my case it's only one building) but afaik the trigger would fire whenever any unit dies and THEN check if it was the unit I want. Wouldn't that create a ton of trigger traffic or whatever? BTW this is for a type of unit spawning/massing map so there is definitely going to be a lot of things dieing. Please explain/help :)
- Thanks
Premature optimization is the root of all evil.
(Yes, that's how to implement it. No, it's not going to affect performance.)