blob: 19bbfb16fe46e60d23cd9b274515e09de05cbd84 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
/*
Script: Sniper Skill System by Benny.
Description: Add special skills to the defined sniper.
*/
Private ['_binoculars','_markerName','_markertime','_screenPos'];
private ["_binoculars","_screenPos","_markerName","_markertime"];
_binoculars = 'WFBE_BINOCULARS' Call GetNamespace;
if !((currentWeapon player) in _binoculars) exitWith {hint (localize "STR_WF_INFO_Spot_Info")};
if (isNil "markerID") then {markerID = 1};
_screenPos = screenToWorld [0.5,0.5];
_markerName = Format ["Spot%1",markerID];
createMarkerLocal [_markerName,_screenPos];
_markertime = [daytime] call bis_fnc_timetostring;
_markerName setMarkerText Format ['SPOTTED: %1',_markertime];
_markerName setMarkerTypeLocal "mil_destroy";
_markerName setMarkerColorLocal "ColorRed";
_markerName setMarkerSizeLocal [0.5,0.5];
markerID = markerID + 1;
WFBE_SK_V_LastUse_Spot = time;
[_markerName] Spawn {
Private ["_marker"];
_marker = _this select 0;
sleep 180;
deleteMarkerLocal _marker;
};
|