Jump to content
Ophelian

How to force a different save path for the Arsenal?

Recommended Posts

Hi

 

We are having trouble finding the right thing to edit the arsenal so that it saves to another path.

 

The problem is we have a certain custom list of equipment people can use for their loadout but they sometimes bybass it by loading other saved loadouts, they load weapons and uniforms not listed in our custom arsenal.

 

We want the arsenal to save/load on a different location so that we can solve this issue.

 

Default is profilenamespace but we want to switch it to missionnamespace.

 

Thank you

Edited by Ophelian
missing question mark

Share this post


Link to post
Share on other sites

I'm pretty sure it's binarized and configured for the profile namespace unless someone else found a way to do it.

Share this post


Link to post
Share on other sites

You can check if players gear is in the custom list. So no need to disable arsenal saving and loading. 

This only one of the many ways to do this 

Share this post


Link to post
Share on other sites

why not just remove every weapon globally?

then add it all back to the arsenal after a sort of "blacklist" has been established?

 

BIS_fnc_removeVirtualWeaponCargo

 

I would imagine this works correctly. I'm not too sure?

Share this post


Link to post
Share on other sites
On 3/29/2017 at 7:37 PM, Ophelian said:

Hi

 

We are having trouble finding the right thing to edit the arsenal so that it saves to another path.

 

The problem is we have a certain custom list of equipment people can use for their loadout but they sometimes bybass it by loading other saved loadouts, they load weapons and uniforms not listed in our custom arsenal.

 

We want the arsenal to save/load on a different location so that we can solve this issue.

 

Default is profilenamespace but we want to switch it to missionnamespace.

 

Thank you

 

You can actually disable saving, this way when they want to load equipment, they can only load load outs that are part of the arsenal

Share this post


Link to post
Share on other sites
26 minutes ago, BlacKnightBK said:

You can actually disable saving, this way when they want to load equipment, they can only load load outs that are part of the arsenal

Larrow posted this for that exact use:

 


[ missionNamespace, "arsenalOpened", {
    disableSerialization;
    _display = _this select 0;
    {
        ( _display displayCtrl _x ) ctrlSetText "Disabled";
        ( _display displayCtrl _x ) ctrlSetTextColor [ 1, 0, 0, 0.5 ];
        ( _display displayCtrl _x ) ctrlRemoveAllEventHandlers "buttonclick";
    }forEach [ 44146, 44147 ];
} ] call BIS_fnc_addScriptedEventHandler;

 

  • Like 1

Share this post


Link to post
Share on other sites
1 hour ago, Midnighters said:

Larrow posted this for that exact use:

 



[ missionNamespace, "arsenalOpened", {
    disableSerialization;
    _display = _this select 0;
    {
        ( _display displayCtrl _x ) ctrlSetText "Disabled";
        ( _display displayCtrl _x ) ctrlSetTextColor [ 1, 0, 0, 0.5 ];
        ( _display displayCtrl _x ) ctrlRemoveAllEventHandlers "buttonclick";
    }forEach [ 44146, 44147 ];
} ] call BIS_fnc_addScriptedEventHandler;

 

 

Thank you, I will need that

Share this post


Link to post
Share on other sites
11 hours ago, BlacKnightBK said:

Thank you, I will need that

Eh, *shrug* thank Larrow.

  • Like 1

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

×