-
Content Count
7480 -
Joined
-
Last visited
-
Medals
-
Medals
Single Status Update
-
Pierre I am kind of stuck trying to bind a key like maybe shift+m to my map I am trying to build.
Reference code on page below. Do you have any suggestions or know of any code samples?I have been looking around for examples but have not found any. Kind of lost.
- Show previous comments 13 more
-
Ok did that now i get this error
Code below
[] spawn {
waituntil {!isNull (findDisplay 46)};
(findDisplay 46) displayAddEventHandler ["keyDown", "_this call your_keyFnc"];
};your_keyFnc = compileFinal "
_ctrl = _this #0;
_dikCode = _this #1;
_shift = _this #2;
_ctrlKey = _this #3;
_alt = _this #4;
private _input = false;if (_shift && !_alt && !_ctrlKey) then {
if (_dikCode == 50) then {
call {
if (isNil "passed") exitWith {
passed = TRUE;
( [ 'myMiniMap' ] call BIS_fnc_rscLayer ) cutRsc [ 'myMap', 'PLAIN', 1, false ];
};
passed = nil;'' cutRsc [ 'myMap', 'PLAIN', 1, false ];
};
_input = true
};
};
_input
"; - Show next comments 6 more