HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Check if a specific unit type killed a destructible

02-26-2004, 11:27 AM#1
Reaprojects
I have a lever in my map and I want to check what unit type killed the destructible. I also need to check for the owner of the unit. I tried it with A Destructible dies event, but there's no appropiate condition to check for which unit type killed the destructible.

My next approach was the "Unit is issued an order" with the order being 'attack' and the target being the destructible. But that event kicks in even if the unit is not in range and didn't kill the destructible yet.

What would you do?
02-26-2004, 09:09 PM#2
sgtteflon
"Condition - Killing Unit = x" does not work? You sure? ...Positive?

If not, then try.. Unit is ordered to attack x destructible, and it has 0 life left, get ordered unit.
02-26-2004, 09:32 PM#3
Transcendence
Event Destructible dies
conditions:
Killing unit equal to x?
killing unit owned by x?

dont have worldedit open...
02-26-2004, 11:36 PM#4
Reaprojects
Omfg, I'm dumb. Or rather I'm blind. While it is somewhat hidden behind "Conditions -> Boolean Comparison -> Unit Type Comparison", it is still clearly there.

Thank you guys very much for the pointers! :)
02-27-2004, 10:20 AM#5
Reaprojects
Eeeee...

I just tested that but it looks like the "Killing Unit" Comparison only works with "Unit Dies" Events. It doesn't work with destructibles.

:(

Any other ideas?
02-27-2004, 07:05 PM#6
Soultaker
Quote:
Originally posted by Reaprojects
My next approach was the "Unit is issued an order" with the order being 'attack' and the target being the destructible. But that event kicks in even if the unit is not in range and didn't kill the destructible yet.


Do that, then check if the destructible is dead with if/then/else and then run another trigger if its dead