tuffin20 10 Posted November 9, 2009 can anyone help? Share this post Link to post Share on other sites
tcp 10 Posted November 10, 2009 (edited) I assume then you don't want to edit their configs to change the default loadout and only want it done in one mission. In each unit init line: removeAllWeapons this; this addWeapon "WepClassName"; this addMagazine "AmmoClassName"; You have to know the class names of the weapons from looking at the configs or picking the weapons you want and executing a radio trigger with: {player sideChat _x} forEach weapons player; {player commandChat _x} forEach magazines player; Also, you can use my script, to define custom loadouts based on class, and enable respawning with them as well. http://blackop.co.cc/forum/viewtopic.php?f=20&t=119&p=382#p382 If you meant, configs: It looks like: class CfgVehicles { class SoldierWB : CAManBase { weapons[] = {M4A1_AIM, "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "NVgoggles"}; magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_west", "HandGrenade_west"}; respawnWeapons[] = {M4A1_AIM, "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_west", "HandGrenade_west"}; }; }; You can make an addon or directly edit the existing configs. Edited November 10, 2009 by tcp Share this post Link to post Share on other sites
tuffin20 10 Posted November 10, 2009 how do i edit the configs, where are they? Share this post Link to post Share on other sites
tcp 10 Posted November 10, 2009 Go to modfoldername\addons\modname.pbo UnPBO (extract) then look for config.cpp If not found, look for config.bin and unRAP Open config.cpp in a text editor You will find the appropriate sections, but use them for reference only. If you want to modify someone else's config, its best you write your own addon with the config changes. Take the sections that you want to modify out and only include the values that were changed. Put them in your config.cpp with the appropiate CfgPatches section which should include the unit names changed and the addons that you want to overwrite. You can pack it into a pbo and load it as your own addon. Share this post Link to post Share on other sites
tuffin20 10 Posted November 11, 2009 (edited) how do i change the loadout in the mission? Edited November 11, 2009 by tuffin20 Share this post Link to post Share on other sites
blaunarwal 10 Posted November 13, 2009 (edited) Hi Recently I made some scripts you can put in the init line of each soldier to define its weapons. It wasn't my idea. Just had the same problem like you and found the solution in ArmA Edit. You can download scripts for the marine commandos here http://www.armaholic.com/page.php?id=7914 You can easily change these scripts to your needs without the need of unpbo, unbin and back. Edited November 13, 2009 by Blaunarwal Share this post Link to post Share on other sites