Jump to content
  • 0

Remove Ammo/Weapon from Cars/Armors/Heli in Epoch 1.0.5.1


Dominopi

Question

3 answers to this question

Recommended Posts

  • 0

thank you. Where can I find classname weapon and ammo. For example I want remove rockets from ka60_gl_pmc on pilot (14 rockets Name S-5).

How can I do that?

 

I dont have Idea. 

//The method underneath is if you want to remove a specific Weapon or a specific amount of ammo
	if (_object isKindof "Ka60_GL_PMC") then {
         _object magazinesTurret [-1];
		 _object removeMagazinesTurret ["14Rnd_FFAR",[-1]];
		 _object WeaponsTurret [-1];
		 _object removeWeapon "FFARLauncher_14";
	};
	
//SECOND METHOD
//The method underneath is for removing the complete ammo for the selected seat in the vehicle
if (_object isKindof "Ka60_GL_PMC") then {
        _mag = _object magazinesTurret [-1];
        cpt = 0;
        {
            _object removeMagazinesTurret [_mag select cpt,[-1]];  
            cpt = cpt + 1;
        } forEach _mag;
		//You still need to remove the weapon
		 _object WeaponsTurret [-1];
		 _object removeWeapon "FFARLauncher_14";
    };
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...