Ok, this is basically what Python is for. You hook the trigger up with a Python script returning a True/False (boolean) value, which you get with CyPlayer.isAlive(). The CyPlayer object you of course get with CyGlobalContext.getPlayer() where you supply the PlayerType of the Afghans as the parameter.