Angryr
Chieftain
1) Is there an event for hooking onto when a unit is killed? If so, what is the function signature? I can't seem to find any examples.
2) What is the event GameEvents.OnUnitRetreated (found in AlexanderScenario.lua) is that when a great person is captured and returns to a city or is that from the one promotion for ranged units where they fall back a tile when attacked to avoid being hit?
In regards to #1, if anyone has any tips on how to find information like this out on my own it's very welcomed. I've been trying to manage with FireTuner but my knowledge of the Civ6 API and Lua is limited (I'm a C# developer).
2) What is the event GameEvents.OnUnitRetreated (found in AlexanderScenario.lua) is that when a great person is captured and returns to a city or is that from the one promotion for ranged units where they fall back a tile when attacked to avoid being hit?
In regards to #1, if anyone has any tips on how to find information like this out on my own it's very welcomed. I've been trying to manage with FireTuner but my knowledge of the Civ6 API and Lua is limited (I'm a C# developer).