Jump to content
  • 0

Airplanes with guns


redrum.fk

Question

6 answers to this question

Recommended Posts

  • 1

Is there a working script for the biplanes that you know of. The ones i have found are not working.

very easy.... this is how I did it since 2012

you can add or remove weapons to any vehicle

I put every weapon on a quad for giggles.... 

in your servermonitor  just add like this

 

find this and add  under this

clearWeaponCargoGlobal  _object;
clearMagazineCargoGlobal  _object;
// _object setVehicleAmmo DZE_vehicleAmmo;

// add this..........

 

//======================Vehicle weapons MOD========================


//AN2_DZ add weapons
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";
_object addWeapon "TwinVickers";
_object addMagazine "500Rnd_TwinVickers";

};

//An2_TK_EP1 add weapons
if (_object isKindOf "An2_TK_EP1") then {
_object addWeapon "M240_veh";
_object addMagazine "100Rnd_762x51_M240";
_object addMagazine "100Rnd_762x51_M240";
_object addMagazine "100Rnd_762x51_M240";
_object addWeapon "TwinVickers";
_object addMagazine "500Rnd_TwinVickers";

};

change the vehicle classname and weapons of your choice

 

 

then to get vehicles to actually spawn with the weapons (not require a restart)

 

add the same in

server_publishVehicle2.sqf

 

under this chunk

 

if(DZE_TRADER_SPAWNMODE) then {
_object attachTo [_object_para, [0,0,-1.6]];
sleep 1.0;
WaitUntil{(([_object] call FNC_GetPos) select 2) < 0.1};
detach _object;
deleteVehicle _object_para;
};


PVDZE_serverObjectMonitor set [count PVDZE_serverObjectMonitor,_object];


_object call fnc_veh_ResetEH;


// for non JIP users this should make sure everyone has eventhandlers for vehicles.
PVDZE_veh_Init = _object;
publicVariable "PVDZE_veh_Init";
_object setVariable ["lastInventory", []];
/// add this for each vehicle you add weapons to
//AN2_DZ add weaponsif (_object isKindOf "AN2_DZ") then {
_object addWeapon "M240_veh";
_object addMagazine "100Rnd_762x51_M240";
_object addMagazine "100Rnd_762x51_M240";
_object addMagazine "100Rnd_762x51_M240";
_object addWeapon "TwinVickers";
_object addMagazine "500Rnd_TwinVickers";

};

 

 

 

 

_object removeWeapon "M240_veh";

_object removeMagazine "100Rnd_762x51_M240";

 

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...