This tutorial covers creating a generic virtual arsenal that gives players access to all the equipment in the game. It also covers how to make a trigger that auto rearms the player when they respawn or walk back near the box.
If you have any suggestions for further topics, then please leave a comment and I'll see if I can make a video on how to do it.
The mission file can be found here:
steamcommunity.com/sharedfile...
BIS_fnc_arsenal:
(can't put the code here as youtube doesn't like it) - you can find the code typed on the steam workshop page linked above.
community.bistudio.com/wiki/B...
For the trigger:
Condition:
!(player inArea thisTrigger)
On Activation:
[player, [missionNamespace, "Var_SavedInventory"]] call BIS_fnc_saveInventory;
community.bistudio.com/wiki/B...
On Deactivation:
[player, [missionNamespace, "Var_SavedInventory"]] call BIS_fnc_loadInventory;
community.bistudio.com/wiki/B...
To decompile the mission, follow this guide (Thanks Gunter!):
forums.bohemia.net/forums/top...
9 авг 2021