gruppe-adler / TvT_Rattenfalle.Tanoa

Pilot Rescue TvT - US vs. local rebels
1 stars 1 forks source link

Todos #1

Closed nomisum closed 8 years ago

nomisum commented 8 years ago
nomisum commented 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;