Jump to content
Sign in to follow this  
DArmstrong

How do you add custom ammo and gear to a ammo truck or other vehicle.

Recommended Posts

None of my crate filler sqs or sqf and none that I have downloaded which were written by much better scripters than me seem to work in the Support or Cars classes of vehicles. I run the filler scripts on them to add custom equipment like a launcher or SOFLAM and maybe some spare magazines for our MK 17's but nothing changes what looks like a hard coded loadout for the trucks. Is it still possible to load custom selected gear for a specific mission on an MTVR or HMMWV?

This is sample code that I am used to being able to use on most any vehicle.

clearweaponcargo _this;
clearmagazinecargo _this;

//Magazines
_this addMagazineCargo ["5Rnd_127x99_as50",100];
_this addMagazineCargo ["200Rnd_556x45_L110A1",100];
_this addMagazineCargo ["5Rnd_86x70_L115A1",100];
_this addMagazineCargo ["100Rnd_762x51_M240",100];
_this addMagazineCargo ["30Rnd_556x45_Stanag",100];
_this addMagazineCargo ["1Rnd_HE_M203",100];
_this addMagazineCargo ["FlareWhite_M203",100];
_this addMagazineCargo ["FlareGreen_M203",100];
_this addMagazineCargo ["FlareRed_M203",100];
_this addMagazineCargo ["FlareYellow_M203",100];
_this addMagazineCargo ["1Rnd_Smoke_M203",100];
_this addMagazineCargo ["1Rnd_SmokeRed_M203",100];
_this addMagazineCargo ["1Rnd_SmokeGreen_M203",100];
_this addMagazineCargo ["1Rnd_SmokeYellow_M203",100];
_this addMagazineCargo ["NLAW",100];

//Weapons
_this addWeaponCargo ["BAF_AS50_scoped",20];
_this addWeaponCargo ["BAF_AS50_TWS",20];
_this addWeaponCargo ["BAF_L110A1_AIM",20];
_this addWeaponCargo ["BAF_L7A2_GPMG",20];
_this addWeaponCargo ["BAF_L85A2_RIS_ACOG",20];
_this addWeaponCargo ["BAF_L85A2_RIS_CWS",20];
_this addWeaponCargo ["BAF_L85A2_RIS_Holo",20];
_this addWeaponCargo ["BAF_L85A2_RIS_SUSAT",20];
_this addWeaponCargo ["BAF_L85A2_UGL_ACOG",20];
_this addWeaponCargo ["BAF_L85A2_UGL_Holo",20];
_this addWeaponCargo ["BAF_L85A2_UGL_SUSAT",20];
_this addWeaponCargo ["BAF_L86A2_ACOG",20];
_this addWeaponCargo ["BAF_LRR_scoped",20];
_this addWeaponCargo ["BAF_LRR_scoped_W",20];
_this addWeaponCargo ["BAF_NLAW_Launcher",20];
_this addWeaponCargo ["BAF_L109A1_HE",20];

Share this post


Link to post
Share on other sites

There must be something wrong with the way you are calling the script. It should be called with

nul = this execvm "script.sqf"

Possibly you are putting this in brackets like nul = [this] execvm? which would mean the passed vehicle would be _this select 0 and not _this

I'm clutching at straws would you like to show us your mission in its entirety so we can troubleshoot? like upload the mission

Share this post


Link to post
Share on other sites

Thanks for your help.

I am posting a sample mission. In this mission gearTest1.utes I placed a couple of men standing behind a MTVR which should contain all the Operation Arrowhead weapons and ammo. Check out the init of the truck. I must be doing something wrong. The truck doesn't get the custom load of equipment from gearOA.sqf

Thanks for helping me out with this.

http://www.mediafire.com/?c9h19q29wwo4u4o

Sorry about the poor file host...DA

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×