[Snippet] Disabling all "fire from vehicle" positions

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

[Snippet] Disabling all "fire from vehicle" positions

Post 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;

Post Reply