Page 1 of 1

[Snippet] Disabling all "fire from vehicle" positions

Posted: Tue Nov 04, 2014 5:05 pm
by wolfenswan
To disable all "fire from vehicle" positions in a given vehicle, put the following in it's init:

Code: Select all

_veh = this;
if (local _veh) then {
{
if ((_x select 0) == "Turret") then {_veh enablePersonTurret [(_x select 1),false]  }; 
} forEach ((typeOf _veh) call bis_fnc_vehicleRoles);
};
You can also replace the this with the vehicle's name (such as VehAAF_TH1) and put it in the init.sqf;