How to Auto Save/Load Your Loadout | Arma 3

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024
  • Demonstration on how to automatically restore a player's loadout on respawn, with whatever loadout they had setup when they closed their arsenal. This is helpful to avoid the usual redundant: run to an arsenal and reload your gear every time you respawn...
    0) Make sure your mission is already setup for Multiplayer first. Setup respawning, export to multiplayer, test in MP, etc.
    1) Init of object to add arsenal to it:
    this addAction["Virtual Arsenal",{["Open",true]call BIS_fnc_arsenal;}];
    2) Copy & paste the following code into your mission's "InitPlayerLocal.sqf" file:
    pastebin.com/n...
    3) Paste this into your mission's OnPlayerRespawn.sqf:
    player setUnitLoadout ( player getVariable [ "Saved_Loadout" , [] ] );

Комментарии • 7