Next, I have made a script to let AIs to fire flare at night.
1. Create this file, dayz_server/WAI/compile/flare_fire.sqf
This script will add an AK74/GP25 to the leader of the group, which is the argument of this function.
He'll fire a flare round toward a player close to him at night.
2. add this in dayz_server/WAI/init.sqf
3. Now activate this script in spawn_group.sqf, to make AI to fire flare rounds.
Add this code
To limit the AI levels and gear type, I put this code instead.