Jump to content
  • 0

Removing ammo from helicopters that spawn with ammo


aKra

Question

We are having a major issue with adding the "pook_H13_transport" to the trader, it will spawn with full ammo and will respawn after restart.

 

I have found a script while Google'ing but couldn't figure out where to put it, and where I tried it (like server_monitor.sqf and server_tradeObject.sqf) it did not work.

 

// Not adding ammo to the Pook at traders
    if(_object isKindOf "pook_H13_transport") then {
    _object removeMagazinesTurret ["pook_12Rnd_Grenade_Camel", [-1]];
    _object removeMagazinesTurret ["pook_250Rnd_762x51", [0]];
    _object removeMagazinesTurret ["100Rnd_762x51_M240", [0]];
    _object removeMagazinesTurret ["1200Rnd_762x51_M240", [0]];
    _object removeMagazinesTurret ["pook_12Rnd_Grenade_Camel", [0]];
    };
// END

 

A little help and/or advise would help a lot!

 

Thanks in advance.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

the way i do this is very very basic and crude but it gets the job done perfectly.

in your server files, open up 'server_publishVehicle.sqf' and look for -

_object setDamage _damage;

and place this underneath -

_object setVehicleAmmo 0;

that'll stop it respawning with ammo at the restart.

next, open up your 'server_publishVehicle2.sqf' and look for -

// _object setVehicleAmmo DZE_vehicleAmmo;

and change it to -

_object setVehicleAmmo 0;

and that'll stop it having ammo when bought from a trader

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