I'd like to propose a new eventhandler that gets called every time a group changes behavior (e.g. from "aware" to "danger" or "stealth"). The handler would be called with
_this select 0: group that has changed mode
_this select 1: previous mode (CARELESS, SAFE, AWARE, COMBAT, STEALTH)
_this select 2: new mode CARELESS, SAFE, AWARE, COMBAT, STEALTH)
_this select 3: reason of mode change ("DETECT" - detected enemy, "GUNFIRE" - heard of observed gunfie, "CORPSE" - found dead body)