My latest testing of the SneakAttack, I turned the battleviews back on to see ow the stack was handled and it seems that the crash occurs because any (attacker or defender) SneakAttack unit causes a crash. The valid code didnt seem to help...
I think the issue is that Regardevent only tracks an attack event but not the killing of a unit. I'm thinking of taking the KillUnitRegard event code for Civilian and adding something like it to the BattleAftermath and call CAUSES but as I was exploring that I got stumped on how does the game know when to call events? I did a search on the event name and even the file name and it only turned up the regardevent. Can anyone explain how the game knows when to trigger an event and what file does that?
thanks...
I think the issue is that Regardevent only tracks an attack event but not the killing of a unit. I'm thinking of taking the KillUnitRegard event code for Civilian and adding something like it to the BattleAftermath and call CAUSES but as I was exploring that I got stumped on how does the game know when to call events? I did a search on the event name and even the file name and it only turned up the regardevent. Can anyone explain how the game knows when to trigger an event and what file does that?
thanks...
Comment