Jump to content
Sign in to follow this  
tuffin20

How can i make my royal marine commandos hold the UKF weapons in the editor?

Recommended Posts

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 by tcp

Share this post


Link to post
Share on other sites

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

how do i change the loadout in the mission?

Edited by tuffin20

Share this post


Link to post
Share on other sites

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 by Blaunarwal

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  

×