Page MenuHomeFeedback Tracker
Feed Advanced Search

May 10 2016

kuh111578 added a comment to T64657: Add randomness to AI rate of fire.

You can break up the AI shooting randomly with something like :

while {true} do {
{

		if (random 1 > 0.83) then {
			_x setCombatMode "YELLOW";
		} else {
			_x setCombatMode "BLUE";
		}

} foreach allunits;
sleep 1;
};

This would lower the rate of fire overall by making pauses between bursts and shots.

May 10 2016, 1:32 AM · Arma 3