Detecting unit killed by player?

Here you can post about your scenario's, mods, custom maps and YouTube channels!
User avatar
Great Britain Interjection
Howdah
Donator 04
Posts: 1045
Joined: Mar 15, 2015
ESO: Interjection
Location: United Kingdom

Detecting unit killed by player?

Post by Interjection »

I'm making a scenario and I'd like to use triggers to detect when a player kills a certain unit

I can detect if any specific unit has died

But I can't detect who killed it.

Is there a way to do this that I'm missing?
User avatar
Holy See Imperial Noob
Lancer
Posts: 958
Joined: Feb 29, 2016
Location: Well hello DEre

Re: Detecting unit killed by player?

Post by Imperial Noob »

I don't have a solution, but maybe this is worth mentioning:

There is this cheat code that changes xp marks near dead units into messages like "Musketeer'ed!" "Hussar'ed" etc., depending not only which player, but what type of unit scored the kill.

If there is no trigger that can help you, maybe reverse-engineering the effect of the cheat code could somehow help with making one. The IT guys should know.
User avatar
Great Britain Interjection
Howdah
Donator 04
Posts: 1045
Joined: Mar 15, 2015
ESO: Interjection
Location: United Kingdom

Re: Detecting unit killed by player?

Post by Interjection »

That's a good point! Also the game know who got the kill because it awards XP to them

Who is online

Users browsing this forum: No registered users and 2 guests

Which top 10 players do you wish to see listed?

All-time

Active last two weeks

Active last month

Supremacy

Treaty

Official

ESOC Patch

Treaty Patch

1v1 Elo

2v2 Elo

3v3 Elo

Power Rating

Which streams do you wish to see listed?

Twitch

Age of Empires III

Age of Empires IV