




Took me lots of dumbo wiki research and lua coding to realize the engine developers were wise to not provide unsynced any way of knowing when an enemy unit died, even when it's in LOS. Imagine the game with units that only appear to die, units that appear to keep walking around after death, or units that remain invisible alive or dead.
I think there is an okay heuristic that a theoretical unsynced AI could use: listing all the features in sight every second and matching new wrecks with counted units. Similarly it could list all the visible units every second and determine if missing counted units were well enough within LOS that disappearing normally is unlikely. Still, some units would die out of sight or without a wreck, and at some point the counts need to have timeouts (another problem shared with human players). What else could it do? Search a video feed of its own viewport for explosions?
Okay, I guess a synced LuaAI could know when enemy units died and have safeguards to respect the boundaries of unsynced knowledge. Still, the problem of intelligence is fundamental to PvP, and most AIs don't have it.