Delete "Group Side" module after use

This commit is contained in:
Ozan Eğitmen 2016-09-16 01:34:32 +03:00
parent d533bd1663
commit 2880c6152a
2 changed files with 4 additions and 2 deletions

View File

@ -17,7 +17,7 @@
#include "script_component.hpp" #include "script_component.hpp"
params ["_unit","_newSide"]; params ["_unit", "_newSide", "_logic"];
private _side = side _unit; private _side = side _unit;
// Nothing to do here // Nothing to do here
@ -43,3 +43,5 @@ if (GETVAR(_unit,ACE_isUnconscious,false) && {GETMVAR(EGVAR(medical,moveUnitsFro
(units _unit) joinSilent _newGroup; (units _unit) joinSilent _newGroup;
deleteGroup _oldGroup; deleteGroup _oldGroup;
}; };
deleteVehicle _logic;

View File

@ -128,7 +128,7 @@ private _fnc_onConfirm = {
private _unit = effectiveCommander (attachedTo _logic); private _unit = effectiveCommander (attachedTo _logic);
private _side = [west,east,independent,civilian] select (GETVAR(_display,newSide,GETVAR(_display,oldSide,0))); 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; deleteVehicle _logic;
}; };