Forum Jump :

Author Message


Posts: 10
Rank:


Level: Member

Country: us
Location: Ohio
Occupation:
Age:
In-game name: Bravo-1

 
#1 Posted at 2014-06-26 01:58        
     
I am making a mission tat requires an M61 for an AA vehicle. Well actually a LAV-25, but whenever I type
this addweapon "M168"; this addMagazineTurret ["2100Rnd_20mm_M168",[1]];
or anything similar to this I scroll through the weapons and find "M61" and 0, as in no ammo so basically I can add this weapon to the vehicle but not the magazine. Also if I try to add a TOW missile to a LAV-25, I can scroll through the weapons to the TOW - It has magazines but the round doesn't load? Some help would be appreciated...


Author Message


Posts: 13
Rank:


Level: Member

Country: mx
Location:
Occupation:
Age:
In-game name:

 
#2 Posted at 2014-10-05 05:31        
     
You need to invert the order.

addmagazine is the fisrt parameter, then the weapons.

example:

(from my custom Mi24D)
CONFIG SUPER Mi24D

this setVehicleInit "this setObjectTexture [0, ""pics\firetexture.paa""]";
this setVehicleInit "this setObjectTexture [1, ""pics\blackpaint.paa""]";

this addMagazine "120Rnd_CMFlare_Chaff_Magazine";
this addMagazine "120Rnd_CMFlare_Chaff_Magazine";
this addMagazine "1200Rnd_30x113mm_M789_HEDP";
this addMagazine "750Rnd_30mm_GSh301";
this addMagazine "4Rnd_Ch29";
this addMagazine "4Rnd_FAB_250";
this addweapon "CMFlareLauncher";
this addweapon "M230";
this addweapon "GSh302";
this addweapon "Ch29Launcher_Su34";
this addweapon "AirBombLauncher";


clearWeaponCargoGlobal this;
clearMagazineCargoGlobal this;
clearBackpackCargoGlobal this;

this addMagazineCargoGlobal ["100Rnd_556x45_BetaCMag", 10];
this addMagazineCargoGlobal ["1Rnd_HE_M203", 10];
this addMagazineCargoGlobal ["20Rnd_762x51_B_SCAR", 10];
this addMagazineCargoGlobal ["20Rnd_762x51_SB_SCAR", 10];
this addMagazineCargoGlobal ["30Rnd_556x45_StanagSD", 10];
this addMagazineCargoGlobal ["HandGrenade_West", 10];
this addMagazineCargoGlobal ["SmokeShell", 10];

this addWeaponCargoGlobal ["M16A4_ACG_GL", 2];
this addWeaponCargoGlobal ["m107_TWS_EP1", 2];
this addWeaponCargoGlobal ["SCAR_H_STD_TWS_SD", 2];
this addWeaponCargoGlobal ["M249_TWS_EP1", 2];
this addWeaponCargoGlobal ["M4A1_HWS_GL_SD_Camo", 2];

this addBackpackCargoGlobal ["CZ_Backpack_Specops_EP1",2];
this addBackpackCargoGlobal ["US_Assault_Pack_Ammo_EP1",2];
this addBackpackCargoGlobal ["US_Backpack_Specops_EP1",2];
this addBackpackCargoGlobal ["BAF_AssaultPack_special",2];


veh = [this, 60, 900, 0, FALSE, FALSE,"

this setVehicleInit 'this setObjectTexture [0, ""pics\firetexture.paa""]' ,
this setVehicleInit 'this setObjectTexture [1, ""pics\blackpaint.paa""]',

this addMagazine '120Rnd_CMFlare_Chaff_Magazine',
this addMagazine '120Rnd_CMFlare_Chaff_Magazine',
this addmagazine '1200Rnd_30x113mm_M789_HEDP',
this addmagazine '750Rnd_30mm_GSh301',
this addmagazine '4Rnd_Ch29',
this addmagazine '4Rnd_FAB_250',
this addweapon 'CMFlareLauncher',
this addweapon 'M230',
this addweapon 'GSh302',
this addweapon 'Ch29Launcher_Su34',
this addweapon 'AirBombLauncher',

clearWeaponCargoGlobal this,
clearMagazineCargoGlobal this,
clearBackpackCargoGlobal this,

this addMagazineCargoGlobal ['100Rnd_556x45_BetaCMag', 10],
this addMagazineCargoGlobal ['1Rnd_HE_M203', 10],
this addMagazineCargoGlobal ['20Rnd_762x51_B_SCAR', 10],
this addMagazineCargoGlobal ['20Rnd_762x51_SB_SCAR', 10],
this addMagazineCargoGlobal ['30Rnd_556x45_StanagSD', 10],
this addMagazineCargoGlobal ['HandGrenade_West', 10],
this addMagazineCargoGlobal ['SmokeShell', 10],

this addWeaponCargoGlobal ['M16A4_ACG_GL', 2],
this addWeaponCargoGlobal ['m107_TWS_EP1', 2],
this addWeaponCargoGlobal ['SCAR_H_STD_TWS_SD', 2],
this addWeaponCargoGlobal ['M249_TWS_EP1', 2],
this addWeaponCargoGlobal ['M4A1_HWS_GL_SD_Camo', 2],

this addBackpackCargoGlobal ['CZ_Backpack_Specops_EP1',2],
this addBackpackCargoGlobal ['US_Assault_Pack_Ammo_EP1',2],
this addBackpackCargoGlobal ['US_Backpack_Specops_EP1',2],
this addBackpackCargoGlobal ['BAF_AssaultPack_special',2]


" ] execVM "scripts\vehicle.sqf";

All those lines are to be set in the vehicle's init line (ingame editor)
As you can see, I am using several modifications in textures, loadouts, and cargo space (additions) the original model doesn't have. I am also using a script to make The Vehicle Respawn with my customized loadout (a must have dude!).

In order to have a proper/working customization you need to know if the model you are trying to customize "accepts" the customization. Try using SIX CONFIG BROWSER to find out the proper config (turrets, hiddenselections, etc.) you are trying to adapt to yor needs.

Hope this could help you!

A. Mayer

All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved. Sun Tzu, The Art of War.

Advertisement


Author Message


Posts: 13
Rank:


Level: Member

Country: mx
Location:
Occupation:
Age:
In-game name:

 
#3 Posted at 2014-10-07 01:24        
     
# bravoone48 : I am making a mission tat requires an M61 for an AA vehicle. Well actually a LAV-25, but whenever I type
this addweapon "M168"; this addMagazineTurret ["2100Rnd_20mm_M168",[1]];
or anything similar to this I scroll through the weapons and find "M61" and 0, as in no ammo so basically I can add this weapon to the vehicle but not the magazine. Also if I try to add a TOW missile to a LAV-25, I can scroll through the weapons to the TOW - It has magazines but the round doesn't load? Some help would be appreciated...

Found your errors!!

this addMagazineTurret ["2100Rnd_20mm_M168",[1]]

remove the key symbols and voila! you have x mags of that ammunition.

Sorry beign a lil late with a proper solution, but yeah... thats it.

All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved. Sun Tzu, The Art of War.





Tags: M168, M61