Testing Tags
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
//saves player loadout for respawn
|
||||
[player, [missionnamespace, "virtualinventory"]] call Bis_fnc_saveinventory;
|
||||
|
||||
//makes shift click markers on map become plain dots without distance.
|
||||
//note: difficulty must be set accordingly
|
||||
if (paramsArray select 0 == 2) then {
|
||||
player onMapSingleClick {_shift};
|
||||
};
|
||||
|
||||
if (paramsArray select 0 == 1) then {
|
||||
disableSerialization;
|
||||
if (hasInterface) then { waitUntil {!isNull (findDisplay 12)};
|
||||
_mapDisplay = findDisplay 12;
|
||||
_mapControl = _mapDisplay displayCtrl 51;
|
||||
|
||||
_mapControl ctrlAddEventHandler ["MouseMoving", {
|
||||
TRN_var_mainMapMouseOverCustomMark = "customMark" in (ctrlMapMouseOver (_this select 0));
|
||||
}];
|
||||
|
||||
["TRN", "onMapSingleClick", {
|
||||
if (_shift) then {
|
||||
TRN_var_customMarkLocation = _pos;
|
||||
};
|
||||
}] call BIS_fnc_addStackedEventHandler;
|
||||
|
||||
_mapDisplay displayAddEventHandler ["KeyDown", {
|
||||
if (!isNil "TRN_var_mainMapMouseOverCustomMark" && {TRN_var_mainMapMouseOverCustomMark} && {(_this select 1) == 211}) then {
|
||||
TRN_var_customMarkLocation = nil;
|
||||
};
|
||||
}];
|
||||
|
||||
addMissionEventHandler ["Draw3D", {
|
||||
if (!isNil "TRN_var_customMarkLocation") then {
|
||||
drawIcon3D ["\A3\ui_f\data\igui\cfg\cursors\customMark_ca.paa", [1,1,1,0.3], [TRN_var_customMarkLocation select 0, TRN_var_customMarkLocation select 1, (TRN_var_customMarkLocation select 2) + 2], 1.5, 1.5, 0, "", 1, 0, "TahomaB", "", true];
|
||||
};
|
||||
}];
|
||||
};
|
||||
};
|
||||
|
||||
//disables subtitles and spoken sentences "Enemy. inftantry. west. 400" etc
|
||||
showSubtitles false;
|
||||
enableSentences false;
|
||||
Reference in New Issue
Block a user