mirror of
https://github.com/IT07/a3_vemf_reloaded.git
synced 2024-08-30 16:52:11 +00:00
Tweaks
This commit is contained in:
parent
9041dbd9fc
commit
d5d56a66b0
@ -16,22 +16,19 @@ while {true} do
|
|||||||
{
|
{
|
||||||
if ((count playableUnits) > 0) then
|
if ((count playableUnits) > 0) then
|
||||||
{
|
{
|
||||||
waitUntil {if ((count allGroups) > 0) then {uiSleep 0.25; true} else {uiSleep 0.5; false} };
|
|
||||||
{
|
{
|
||||||
if ((local _x) AND (_x getVariable ["isVEMFrGroup",false])) then
|
if ((local _x) AND (_x getVariable [("isVEMFrGroup"),(false)]) AND (_x getVariable [("isVEMFrGroupLocal"),(false)])) then
|
||||||
{
|
{
|
||||||
if ((count (units _x)) > 0) then
|
if ((count (units _x)) > 0) then
|
||||||
{
|
{
|
||||||
//["REMOTEguard",1,format["Attempting to transfer group: %1", _x]] ExecVM ("log" call VEMFr_fnc_scriptPath);
|
//["REMOTEguard",1,format["Attempting to transfer group: %1", _x]] ExecVM ("log" call VEMFr_fnc_scriptPath);
|
||||||
// Group still has units, check if there is anyone that can be the owner
|
// Group still has units, check if there is anyone that can be the owner
|
||||||
_h = [_x] ExecVM ("setGroupOwner" call VEMFr_fnc_scriptPath);
|
[_x] ExecVM ("setGroupOwner" call VEMFr_fnc_scriptPath);
|
||||||
waitUntil { if (scriptDone _h) then {true} else {uiSleep 0.1; false} };
|
|
||||||
//["REMOTEguard",1,format["Transfer attempted. Group (%1) is %2", _x, if (local _x) then {"still local!"} else {"now REMOTE"}]] ExecVM ("log" call VEMFr_fnc_scriptPath);
|
//["REMOTEguard",1,format["Transfer attempted. Group (%1) is %2", _x, if (local _x) then {"still local!"} else {"now REMOTE"}]] ExecVM ("log" call VEMFr_fnc_scriptPath);
|
||||||
} else
|
} else { deleteGroup _x };
|
||||||
{
|
|
||||||
deleteGroup _x;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
if (not(local _x) AND (_x getVariable [("isVEMFrGroupLocal"),(false)])) then { _x setVariable [("isVEMFrGroupLocal"),(false),(true)] };
|
||||||
} forEach allGroups;
|
} forEach allGroups;
|
||||||
|
uiSleep 0.5;
|
||||||
} else { uiSleep 5 };
|
} else { uiSleep 5 };
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user