hay guys i been using this coding to kill warlord the place him in body-bag with ace then take him back to base to end complete mission but it work on eden but not my server plz help
Warlord
init
["ace_placedInBodyBag", { (_this select 1) setVariable ["UNITNAME",str(_this select 0)]; }] call CBA_fnc_addEventHandler;
Game logic
null = [this] spawn {
_o = _this select 0;
_nonComp = true;
while {_nonComp} do{
_bags = _o nearObjects ["ACE_bodyBagObject", 50];
{
if((_x getVariable "UNITNAME") == "Warlord")exitWith { "END1"
call BIS_fnc_endMission; [west, "HQ"] sideChat "Warlord returned!"; _nonComp = false; };
} foreach _bags;
};
};