Jump to content
  • 0

Removing Ammo on armed vehicles hero trader


DutchDevil

Question

Ive made some changes to my here trader and added these vehicles:

 

    class BTR60_TK_EP1 {
        type = "trade_any_vehicle";
        buy[] = {10,"ItemBriefcase100oz"};
        sell[] = {5,"ItemBriefcase100oz"};
    };
    class BTR90 {
        type = "trade_any_vehicle";
        buy[] = {10,"ItemBriefcase100oz"};
        sell[] = {5,"ItemBriefcase100oz"};
    };
    class BRDM2_INS {
        type = "trade_any_vehicle";
        buy[] = {10,"ItemBriefcase100oz"};
        sell[] = {5,"ItemBriefcase100oz"};
    };
    class BMP2_HQ_INS {
        type = "trade_any_vehicle";
        buy[] = {10,"ItemBriefcase100oz"};
        sell[] = {5,"ItemBriefcase100oz"};
    };
    class AH6J_EP1 {
        type = "trade_any_vehicle";
        buy[] = {5,"ItemBriefcase100oz"};
        sell[] = {2,"ItemBriefcase100oz"};
    };
    class AH6X_EP1 {
        type = "trade_any_vehicle";
        buy[] = {5,"ItemBriefcase100oz"};
        sell[] = {2,"ItemBriefcase100oz"};
    };
    class AAV {
        type = "trade_any_vehicle";
        buy[] = {10,"ItemBriefcase100oz"};
        sell[] = {5,"ItemBriefcase100oz"};
    };
    class M113_UN_EP1 {
        type = "trade_any_vehicle";
        buy[] = {10,"ItemBriefcase100oz"};
        sell[] = {5,"ItemBriefcase100oz"};
    };
    class M6_EP1 {
        type = "trade_any_vehicle";
        buy[] = {10,"ItemBriefcase100oz"};
        sell[] = {5,"ItemBriefcase100oz"};

 

How can i make them spawn when bought that ammo is removed and not reammoed after restart?

I cant figure it out..

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Never used config traders myself but I'm going to assume the trading still uses the server_publishVehicle2.sqf file.

So hop into your server PBO and open up server_publishVehicle2.sqf. In there you should find

// _object setVehicleAmmo DZE_vehicleAmmo;

Just replace that with

_object setVehicleAmmo 0;

Then to take care of the ammo at server startup, just do the same thing in server_publishVehicle.sqf.

Link to comment
Share on other sites

  • 0

What you are looking for is here:   http://opendayz.net/threads/release-remove-weapons-ammunition-thermal-from-vehicle-epoch-version.18044/

 

Its works like a charm. If you have any problems with this script i can gladly help you with any vehicle you would like to be stripped of ammo at purchase/restart.

 

This only works for bought vehicles. If you spawn one in as an admin it will have the ammo, like wise for dynamic spawns.

 

I use it on my server to remove ammo from f-35, apache, pook gunship, pook transport, and flying fortress

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...