Files
KPLibSumava/kp_liberation.brf_sumava/scripts/client/remotecall/remote_call_incoming.sqf
Samuele Lorefice 9e023649ac initial files
2025-05-24 16:17:33 +02:00

24 lines
770 B
Plaintext

if ( isDedicated ) exitWith {};
params [ "_attack_destination" ];
if ( isNil "GRLIB_last_incoming_notif_time" ) then { GRLIB_last_incoming_notif_time = -9999 };
if ( time > GRLIB_last_incoming_notif_time + 60 ) then {
GRLIB_last_incoming_notif_time = time;
private [ "_attack_location_name" ];
_attack_location_name = [_attack_destination] call KPLIB_fnc_getLocationName;
[ "lib_incoming", [ _attack_location_name ] ] call BIS_fnc_showNotification;
private [ "_mrk" ];
_mrk = createMarkerLocal [ "opfor_incoming_marker", _attack_destination];
"opfor_incoming_marker" setMarkerTypeLocal "selector_selectedMission";
"opfor_incoming_marker" setMarkerColorLocal GRLIB_color_enemy_bright;
sleep 250;
deleteMarkerLocal _mrk;
};