mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Delete "Group Side" module after use
This commit is contained in:
parent
d533bd1663
commit
2880c6152a
@ -17,7 +17,7 @@
|
||||
|
||||
#include "script_component.hpp"
|
||||
|
||||
params ["_unit","_newSide"];
|
||||
params ["_unit", "_newSide", "_logic"];
|
||||
private _side = side _unit;
|
||||
|
||||
// Nothing to do here
|
||||
@ -43,3 +43,5 @@ if (GETVAR(_unit,ACE_isUnconscious,false) && {GETMVAR(EGVAR(medical,moveUnitsFro
|
||||
(units _unit) joinSilent _newGroup;
|
||||
deleteGroup _oldGroup;
|
||||
};
|
||||
|
||||
deleteVehicle _logic;
|
||||
|
@ -128,7 +128,7 @@ private _fnc_onConfirm = {
|
||||
private _unit = effectiveCommander (attachedTo _logic);
|
||||
private _side = [west,east,independent,civilian] select (GETVAR(_display,newSide,GETVAR(_display,oldSide,0)));
|
||||
|
||||
[_unit, _side] call FUNC(moduleGroupSide);
|
||||
[_unit, _side, _logic] call FUNC(moduleGroupSide);
|
||||
deleteVehicle _logic;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user