RaptorElite 0 Posted June 6, 2016 I searched for a script or command that could reload all the gear and loadout that I had at the start of an MP game, after I respawned after getting killed. I did get a hit on a weaponrespawn.sqf script *forgot the author* but that script just saved what I had in my vest and uniform, not my backpack, so I'm wondering if anyone would be able to help? Share this post Link to post Share on other sites
Fiddi 68 Posted June 6, 2016 There are commands such as setUnitLoadout and getUnitLoadout. And there's this: https://community.bistudio.com/wiki/Event_Scripts Check out the InitPlayerLocal.sqf and onPlayerRespawn.sqf From there you might figure out how to do what you want. Share this post Link to post Share on other sites
sarogahtyp 1109 Posted June 6, 2016 initPlayerLocal.sqf waitUntil {sleep 0.5; BIS_fnc_init}; yourGlobalLoadoutArray = getUnitLoadout player; onPlayerRespawn.sqf if (!isNil "yourGlobalLoadoutArray") then { player setUnitLoadout yourGlobalLoadoutArray; }; 1 Share this post Link to post Share on other sites
dekart811 10 Posted June 25, 2016 initPlayerLocal.sqf [player, [missionNamespace, "inventory_var"]] call BIS_fnc_saveInventory; player addMPEventHandler ["MPRespawn", {[player, [missionNamespace, "inventory_var"]] call BIS_fnc_loadInventory;}]; Share this post Link to post Share on other sites
kylania 568 Posted June 25, 2016 Why wait for respawning? Change the players loadout randomly throughout the mission! Share this post Link to post Share on other sites