HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Who Killed The Destructible?

07-05-2007, 05:06 AM#1
Brash
is there a way to keep track of the killer of destructibles?

i only see event responses of 'killing unit' in reference to the killer of units.


i want to do something to the unit that kills summer tree walls.
07-05-2007, 05:23 AM#2
falcoknight
Who killed the Cheerleader?
07-05-2007, 05:51 AM#3
Pyrogasm
There is no way that I know of.
07-05-2007, 11:36 AM#4
sas_Skorpion
Well maybe there is a way but im not yet sure of but its worth a try (and its a lil bit complicated) :

Trigger:
Untitled Trigger 001
Collapse Events
Destructible - (This is the problem-u must define the destructible) dies
Conditions
Collapse Actions
Set <Variable> = (Killing unit)
(And now here the commands for setting kills or similar)
07-05-2007, 02:27 PM#5
Brash
Quote:
Originally Posted by sas_Skorpion
Well maybe there is a way but im not yet sure of but its worth a try (and its a lil bit complicated) :

Trigger:
Untitled Trigger 001
Collapse Events
Destructible - (This is the problem-u must define the destructible) dies
Conditions
Collapse Actions
Set <Variable> = (Killing unit)
(And now here the commands for setting kills or similar)

I know the destructible. they will be preset. my concern is only the set variable to killing unit.. that part only conciders units that have killed other units.

too bad there wasn't a getdestructiblekillingunit
07-05-2007, 03:00 PM#6
sas_Skorpion
well in jass im kinda 0 but maybe there is such a command ... but im not the right one that can say that ... too bad
07-05-2007, 03:24 PM#7
Oglog
Can't you just use units instead of destructibles? Change their models, hp etc. Then use unit dies.
07-05-2007, 05:27 PM#8
Toadcop
and btw who killed Kenny ? =\

// theoreticaly it's possible =) but it's not for you i think + i don't see much sense in it.
07-05-2007, 09:20 PM#9
Brash
Quote:
Originally Posted by Toadcop
and btw who killed Kenny ? =\

// theoreticaly it's possible =) but it's not for you i think + i don't see much sense in it.

well so you know of a way or you just wish there was a way
07-07-2007, 07:28 AM#10
Toadcop
? =) you can make a lot of things inderectly ;) but it would be a mess and not worth it.
07-07-2007, 01:31 PM#11
DioD
if custom damage system present in map its easy.
standart events return only given set of data from there structs.
07-07-2007, 05:01 PM#12
Anopob
Hm this question was asked quite a while ago because the person wanted to add a "stick" to that person as a resource or something, and I remember I had a way...I think. Well I'll see if I can get something done.
07-08-2007, 10:36 PM#13
GamesSmash
The only way I can think of is:
Trigger:
Tree Killer
Collapse Events
Destructible - Ashenvale Tree Wall 0000 <gen> dies
Conditions
Collapse Actions
Collapse Unit Group - Pick every unit in (Units within 150.00 of (Position of Ashenvale Tree Wall 0000<gen>)) and do (Actions)
Collapse Loop - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Unit-type of (Picked unit)) Equal to (==) Tree Killer
Collapse Then - Actions
Set Tree_Killer = (Picked unit)
Else - Actions

This detects the unit which is closest to the tree and sets it as the tree killer. Of course this wont work if you have rangers that kill trees. Hope it helps.
07-08-2007, 10:45 PM#14
Tide-Arc Ephemera
What happens if there's two equally distanced units attacking the same thing?
07-08-2007, 11:03 PM#15
Thunder_Eye
E-R-R-O-R-!