mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
save and restore last loadout
This commit is contained in:
parent
f31eb52b08
commit
2d2bf2acd4
@ -52,6 +52,7 @@ cba_diagnostic_projectileMaxLines = 10;
|
||||
] call BIS_fnc_GUImessage;
|
||||
|
||||
if (_return) then {
|
||||
profileNamespace setVariable [QGVAR(missionLastLoadout), getUnitLoadout player];
|
||||
_display closeDisplay 2;
|
||||
findDisplay 46 closeDisplay 0;
|
||||
};
|
||||
|
@ -2,6 +2,12 @@
|
||||
|
||||
params ["_unit"];
|
||||
|
||||
private _loadout = profileNamespace getVariable QGVAR(missionLastLoadout);
|
||||
|
||||
if (!isNil "_loadout") then {
|
||||
_unit setUnitLoadout _loadout;
|
||||
};
|
||||
|
||||
_unit allowDamage false;
|
||||
|
||||
//--- Static targets in various distance
|
||||
|
Loading…
Reference in New Issue
Block a user