GioLabo 2 Posted March 22, 2017 Hello chaps I'm not really good in scripting. I just started to create custom missions in Arma 3 so I need your little help. What I'm trying to do is to save the exact loadout on unit after death and respawn with same gear. can somebody tell me how to do that? Share this post Link to post Share on other sites
Nikander 123 Posted March 22, 2017 You might find this post helpful Share this post Link to post Share on other sites
GioLabo 2 Posted March 22, 2017 31 minutes ago, Nikander said: You might find this post helpful I tried that... didn't work :( Share this post Link to post Share on other sites
WurschtBanane 11 Posted March 22, 2017 There is no simple way to do this. BUT there is a script called poppy. And it does exactly what you need: Lets you create a loadout for every playable unit that will be applied everytime after respawn. https://github.com/BaerMitUmlaut/Poppy/blob/master/README.md Share this post Link to post Share on other sites
Beerkan 71 Posted March 23, 2017 20 hours ago, WurschtBanane said: There is no simple way to do this.... Except the simple way. in init.sqf // Set Units current Loadout Fnc_Set_Loadout = { _unit = _this select 0; _unit setVariable ["Saved_Loadout",getUnitLoadout _unit]; }; // Get Units current Loadout Fnc_Get_Loadout = { _unit = _this select 0; _unit setUnitLoadout (_unit getVariable ["Saved_Loadout",[]]); }; Then in initPlayerLocal.sqf player addEventhandler ["Killed", {_this spawn Fnc_Set_Loadout}]; player addEventHandler ["Respawn", {_this spawn Fnc_Get_Loadout}]; 1 Share this post Link to post Share on other sites
WurschtBanane 11 Posted April 4, 2017 On 23. März 2017 at 8:20 PM, Beerkan said: Except the simple way. in init.sqf // Set Units current Loadout Fnc_Set_Loadout = { _unit = _this select 0; _unit setVariable ["Saved_Loadout",getUnitLoadout _unit]; }; // Get Units current Loadout Fnc_Get_Loadout = { _unit = _this select 0; _unit setUnitLoadout (_unit getVariable ["Saved_Loadout",[]]); }; Then in initPlayerLocal.sqf player addEventhandler ["Killed", {_this spawn Fnc_Set_Loadout}]; player addEventHandler ["Respawn", {_this spawn Fnc_Get_Loadout}]; Are you sure this will work with JIP? Share this post Link to post Share on other sites
Grumpy Old Man 3545 Posted April 4, 2017 3 hours ago, WurschtBanane said: Are you sure this will work with JIP? As long as the addEventhandler commands are in the initPlayerLocal.sqf as Beerkan wrote, yes. Cheers Share this post Link to post Share on other sites