Jump to content
  • 0

Remove ammo from M240 nest


kmzkamikaze

Question

I've been searching and searching but couldn't find anything about it, Probably because it's not suppose to be in there.. Anyways I added the m240_nest_kit to the trader but problem is it starts with 4 m240 Mags and resets to 4 mags on restarts.

 

So my question is, is there a way to remove the ammo from it on restarts perhaps via some script?

 

something like this? in server_monitor.sqf

if ((_object isKindOf "M240Nest_DZ")) then {
_Object removeMagazinesTurret ["100Rnd_762x51_M240",[0]] }

Would this work? I can't currently test it myself and also maybe more people are interested in this

 

Appreciate any help,

Thanks

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0

That would remove 1 mag

if (_object isKindOf "M240Nest_DZ") then {
  _object removeMagazinesTurret ["100Rnd_762x51_M240",[0]] 
  _object removeMagazinesTurret ["100Rnd_762x51_M240",[0]]
  _object removeMagazinesTurret ["100Rnd_762x51_M240",[0]]
  _object removeMagazinesTurret ["100Rnd_762x51_M240",[0]]
};

would remove 4 mags.

 

If that doesn't work I would try

_object removeMagazinesTurret ["100Rnd_762x51_M240",[-1]]
Link to comment
Share on other sites

  • 0

I've been searching and searching but couldn't find anything about it, Probably because it's not suppose to be in there.. Anyways I added the m240_nest_kit to the trader but problem is it starts with 4 m240 Mags and resets to 4 mags on restarts.

 

So my question is, is there a way to remove the ammo from it on restarts perhaps via some script?

 

something like this? in server_monitor.sqf

if ((_object isKindOf "M240Nest_DZ")) then {
_Object removeMagazinesTurret ["100Rnd_762x51_M240",[0]] }

Would this work? I can't currently test it myself and also maybe more people are interested in this

 

Appreciate any help,

Thanks

_object setVehicleAmmo 0;
Link to comment
Share on other sites

  • 0

This worked like a charm, I didn't really expect SetVehicleAmmo would work on it =)

            if (_object isKindOf "M240Nest_DZ") then
                {
                    _object setVehicleAmmo 0;
                };

Thanks for all the help guys! Appreciate you all taking your time

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...