tinboye

Matching weapons to magazine

4 posts in this topic

I have not done much within eden editor and cfgweapons. Is there a script i can run or somewhat to compile a list, or someone have a list of exile weapons and what magazines they use.

example for the exile weapon: Exile_Weapon_CZ550  what ammo/magazine matches that weapon that kind of thing.

 

thanks

Share this post


Link to post
Share on other sites
Advertisement
Spoiler

_allWeapons = [];
{
    _weapon = configName _x;
    _itemInformation = [_weapon] call BIS_fnc_itemType;
    switch (_itemInformation select 0) do
    {
        case ("Weapon"):
        {
            if ((_weapon find "Exile_") > -1) then
            {
                _allMags = getArray(configFile >> "CfgWeapons" >> _weapon >> "magazines");
                _allWeapons pushBack [_weapon, _allMags];
            };
        };
    };
}
forEach ('(getNumber(_x >> ''scope'') isEqualTo 2) && {!(getText(_x >> ''picture'') isEqualTo '''')}' configClasses (configFile >> 'CfgWeapons'));

copyToClipboard str(_allWeapons);

 

That will copy all of Exile's weapon + their respective magazines to your clipboard. If you want it copied to a clipboard, you must run this in editor as it's disabled in a MP environment. 

  • Like 4

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.