astruyk / Ares

An arma3 mod that adds some extra functionality to Zeus
51 stars 11 forks source link

'Add Full Arsenal' doesn't show faces, patches or voices #209

Open astruyk opened 8 years ago

astruyk commented 8 years ago

From BIS forums ( https://forums.bistudio.com/topic/175053-ares-modules-expanding-zeus-functionality-release-thread/page-19#entry2967717 ):

I can see you use BIS_fnc_arsenal for add full arsenal but for some how if i use BIS_fnc_arsenal in editor init and preview it i can change face, patches and voices but can't change face, patches and voices in ares arsenal, any solution? http://steamcommunit...s/?id=436595969 Http://steamcommunity.com/sharedfiles/filedetails/?id=436595990

ImperialAlex commented 8 years ago
    Author: Karel Moricky
    Description:
    Splendid arsenal viewer
    Parameter(s):
        0: STRING - mode
        1: ANY - params (see below)
    Modes:
        "Open" - Open the Arsenal
            0 (Optional): BOOL - true to open full Arsenal, with all categories and items available (default: false)
        "Preload" - Preload item configs for Arsenal (without preloading, configs are parsed the first time Arsenal is opened)
            No params
        "AmmoboxInit" - Add virtual ammobox. Action to access the Arsenal will be added automatically on all clients.
            0: OBJECT - ammobox
            1 (Optional): BOOL - true to make all weapons and items in the game available in the box (default: false)
            2 (Optional): Condition for showing the Arsenal action (default: {true})
                      Passed arguments are the same as in addAction condition, i.e., _target - the box, _this - caller
        "AmmoboxExit" - Remove virtual ammobox
            0: OBJECT - ammobox
    Returns:
    NOTHING
*/ 

From bis_fnc_arsenal. The fix is to supply the optional bool parameter to get a "full" arsenal :)