[Snippet] Disabling all "fire from vehicle" positions

Party-approved future science plus handbooks for the revolution
Post Reply
User avatar
Posts: 1208
Joined: Wed May 25, 2011 4:59 pm

[Snippet] Disabling all "fire from vehicle" positions

Post by wolfenswan » Tue Nov 04, 2014 5:05 pm

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;

Post Reply