Tryhard Trevor
Chieftain
- Joined
- Feb 29, 2016
- Messages
- 22
Working on some lua for a custom UA for my custom Civ. My idea for the unique ability is that the Civ would receive some sort of bonus for killing enemy units while playing defensively, or at some kind of disadvantage. One idea I had was: Enemy units killed inside your territory provide bonus gold and production. To do this, I've been using the GameEvents.UnitKilledInCombat.Add(Main) hook. Now this hook returns the killer's ID, the victim's ID, and the unitTypeId. In order to check where the unit that got killed was standing, or really anything about the unit, I need its unitID, not the unitTypeId. Anybody know of a method that I can use to access the unitID of the unit being killed?