| 07-05-2007, 05:06 AM | #1 |
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 |
Who killed the Cheerleader? |
| 07-05-2007, 05:51 AM | #3 |
There is no way that I know of. |
| 07-05-2007, 11:36 AM | #4 |
Well maybe there is a way but im not yet sure of but its worth a try (and its a lil bit complicated) : |
| 07-05-2007, 02:27 PM | #5 | |
Quote:
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 |
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 |
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 |
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 | |
Quote:
well so you know of a way or you just wish there was a way |
| 07-07-2007, 07:28 AM | #10 |
? =) 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 |
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 |
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 |
The only way I can think of is: Trigger: 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 |
What happens if there's two equally distanced units attacking the same thing? |
| 07-08-2007, 11:03 PM | #15 |
E-R-R-O-R-! |
