Very Simple - Credit goes to the biplane guy for figuring it out, I just changed his addweapon to remove weapon lol
and thanks to Zombz.net Player 2, Ghost and KindSir
I take no credit for this whatsoever, While I did figure out you can remove the weapons ages ago, I only shared this as a tutorial because of the other post asking, and users wont have to scroll through pages to find it
Removing Weapons
Open your Server_monitor.sqf
Search for the following lines
Underneath the lines paste the following code
//## LAND VEHICLES
//GAZ Vodnik remove weapons
if (_object isKindOf "GAZ_Vodnik_HMG") then {
_object removeWeapon "2A42";
_object removeMagazine "1500Rnd_762x54_PKT";
};
This is how to remove the weapons from say a GAZ_Vodnik_HMG
To Modify this script simply Change the green text to the class name of the vehicle, the weapon name, and the ammo name. You have to add the ammo multiple times to remove multiple clips
-------------------------------------------------------------------------------------------------
Removing Multiple weapons/ammo
Add the extra weapons and ammo as shown below in red
//## LAND VEHICLES
//GAZ Vodnik
if (_object isKindOf "GAZ_Vodnik_HMG") then {
_object removeWeapon "2A42";
_object removeWeapon "2A42";
_object removeMagazine "1500Rnd_762x54_PKT";
_object removeMagazine "1500Rnd_762x54_PKT";
};
Thats all you have to do
---------------------------------------------------------------------------
Replacing the weapons
You would just change the green text to whatever vehicle gun you choose, and this should replace the gun on the vodnik
//## LAND VEHICLES
//GAZ Vodnik add weapon
if (_object isKindOf "GAZ_Vodnik_HMG") then {
_object addWeapon "2A42";
_object addMagazine "1500Rnd_762x54_PKT";
};
--------------------------------------------------------------------------------------------
I have done this with most of my vehicles on my server, Use this WEBSITE to find weapon names
Enjoy
and thanks to Zombz.net Player 2, Ghost and KindSir
I take no credit for this whatsoever, While I did figure out you can remove the weapons ages ago, I only shared this as a tutorial because of the other post asking, and users wont have to scroll through pages to find it
Removing Weapons
Open your Server_monitor.sqf
Search for the following lines
Code:
clearWeaponCargoGlobal _object;
clearMagazineCargoGlobal _object;
Underneath the lines paste the following code
//## LAND VEHICLES
//GAZ Vodnik remove weapons
if (_object isKindOf "GAZ_Vodnik_HMG") then {
_object removeWeapon "2A42";
_object removeMagazine "1500Rnd_762x54_PKT";
};
This is how to remove the weapons from say a GAZ_Vodnik_HMG
To Modify this script simply Change the green text to the class name of the vehicle, the weapon name, and the ammo name. You have to add the ammo multiple times to remove multiple clips
-------------------------------------------------------------------------------------------------
Removing Multiple weapons/ammo
Add the extra weapons and ammo as shown below in red
//## LAND VEHICLES
//GAZ Vodnik
if (_object isKindOf "GAZ_Vodnik_HMG") then {
_object removeWeapon "2A42";
_object removeWeapon "2A42";
_object removeMagazine "1500Rnd_762x54_PKT";
_object removeMagazine "1500Rnd_762x54_PKT";
};
Thats all you have to do
---------------------------------------------------------------------------
Replacing the weapons
You would just change the green text to whatever vehicle gun you choose, and this should replace the gun on the vodnik
//## LAND VEHICLES
//GAZ Vodnik add weapon
if (_object isKindOf "GAZ_Vodnik_HMG") then {
_object addWeapon "2A42";
_object addMagazine "1500Rnd_762x54_PKT";
};
--------------------------------------------------------------------------------------------
I have done this with most of my vehicles on my server, Use this WEBSITE to find weapon names
Enjoy