Closed nomisum closed 8 years ago
while {alive player} do {
if ( ((side cursorTarget) == civilian) AND (vehicle cursorTarget == cursorTarget)) then
{
_trg = cursorTarget;
["Stop", [_trg]] call CBA_fnc_globalEvent;
}
};
["Stop", {
_this spawn {
_unit = _this select 0;
sleep 0.1;
_unit disableAI "MOVE";
escort1 = _unit addAction ["Escort", "CIS\escort.sqf"];
check1 = _unit addAction ["Check ID", "CIS\id.sqf"];
sleep 5;
_unit removeAction escort1;
_unit removeAction check1;
_unit enableAI "MOVE";
};
}] call CBA_fnc_addEventHandler;