Boba Fetish
New Member
You can add weapons to a vehicle, but how do you edit say, the helicopters flare function? Or even add the flare function to a car.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
vehname addMagazine "60Rnd_CMFlare_Chaff_Magazine";
vehname addWeapon "CMFlareLauncher";
You can add weapons to a vehicle, but how do you edit say, the helicopters flare function? Or even add the flare function to a car.
if (_object isKindOf "AN2_DZ") then {
_object addWeapon "M240_veh";
_object addMagazine "100Rnd_762x51_M240";
_object addMagazine "100Rnd_762x51_M240";
_object addMagazine "100Rnd_762x51_M240";
};
yes thanks inkko, I'm familiar with how to arm the vehicles. But how does this code look for having vehicles spawn in the database with these attachto commands.
_object addWeapon "M1014_DZ";
_object addMagazine "8Rnd_12Gauge_Buck";
_fence = createVehicle ["Fence_corrugated_plate"];
_fence attachTo [_object, [1.2,0,.0], ""];
_fence setVectorDirAndUp [[1,0,0],[0,0,-1]];
_fence2 = createVehicle ["Fence_corrugated_plate"];
_fence2 attachTo [_object, [-.6,0,.0], ""];
_fence2 setVectorDirAndUp [[1,0,0],[0,0,-1]];
_fence3 = createVehicle ["Land_Fire_barrel_burning"];
_fence3 attachTo [_object, [0,0,0], ""];