A3-Conquest.Altis / DAC / AI_1 / DAC_Force_Speed.sqf
DAC_Force_Speed.sqf
Raw
//////////////////////////////
//    Dynamic-AI-Creator    //
//    Version 3.1b - 2014   //
//--------------------------//
//    DAC_Force_Speed       //
//--------------------------//
//    Script by Silola      //
//    silola@freenet.de     //
//////////////////////////////

private ["_group"];

_group = _this select 0;

if(({(vehicle _x) != _x} count (units _group)) > 0) then
{
	if(({(vehicle _x) == _x} count (units _group)) > 0) then
	{
		switch (format["%1",speedmode _group]) do
		{
			case "LIMITED":	{{if((vehicle _x)!= _x) then {(vehicle _x forcespeed 0.8)}}foreach units _group};
			case "NORMAL":	{{if((vehicle _x)!= _x) then {(vehicle _x forcespeed 1.2)}}foreach units _group};
			case "FULL":	{{if((vehicle _x)!= _x) then {(vehicle _x forcespeed 2.5)}}foreach units _group};
			default {};
		};
	};
};