Bonjour, j'aimerais que le Radial Menu s'ouvre avec la touche control au lieux de Windows, comment je pourrais f aire? Ou comment je change la touche?
Dernière édition:
if (playerSide isEqualTo west && {player getVariable ["isEscorting",false]}) exitWith {
["cop_interaction"] spawn CBX_fnc_openInteraction;
};
if (_curObject isKindOf "House_F" && {player distance _curObject < 12} || ((nearestObject [_pos,"Land_Dome_Big_F"]) isEqualTo _curObject || (nearestObject [_pos,_vaultHouse]) isEqualTo _curObject)) exitWith {
switch (side player) do {
case civilian: {["house_menu"] spawn CBX_fnc_openInteraction;};
case west: {["cop_house_menu"] spawn CBX_fnc_openInteraction;};
default {}; };
};
if (!dialog && playerSide isEqualTo west) then {
["cop_interaction"] spawn CBX_fnc_openInteraction;
};
if...
if (playerSide isEqualTo west && {player getVariable ["isEscorting",false]}) exitWith {
["cop_interaction"] spawn CBX_fnc_openInteraction;
};
if (_curObject isKindOf "House_F" && {player distance _curObject < 12} || ((nearestObject [_pos,"Land_Dome_Big_F"]) isEqualTo _curObject || (nearestObject [_pos,_vaultHouse]) isEqualTo _curObject)) exitWith {
switch (side player) do {
case civilian: {["house_menu"] spawn CBX_fnc_openInteraction;};
case west: {["cop_house_menu"] spawn CBX_fnc_openInteraction;};
default {}; };
};
if (!dialog && playerSide isEqualTo west) then {
["cop_interaction"] spawn CBX_fnc_openInteraction;
};
if (!dialog) then {
if (player distance _curObject < ((boundingBox _curObject select 1) select 0)+2 && (!(player getVariable ["restrained",false])) && (!(player getVariable ["playerSurrender",false])) && !life_isknocked && !life_istazed) then {
['vehicle_menu'] spawn CBX_fnc_openInteraction;
};
};
_interruptionKeys = [17,30,31,32];
_exit = false;
if (_ctrlKey) then {
if (playerSide isEqualTo west) then {
if (player getVariable ["isEscorting",false]) then {
["cop_interaction"] spawn CBX_fnc_openInteraction;
_exit = true;
} else {
if ((isPlayer cursorObject) && (cursorObject isKindOf "Man") && !dialog) then {
["cop_interaction"] spawn CBX_fnc_openInteraction;
_exit = true;
};
};
};
if (_exit) exitWith {};
if ((cursorObject isKindOf "House_F") && ((player distance cursorObject) < 12)) then {
switch (side player) do {
case civilian: {["house_menu"] spawn CBX_fnc_openInteraction;};
case west: {["cop_house_menu"] spawn CBX_fnc_openInteraction;};
default {};
};
_exit = true;
};
if (_exit) exitWith {};
if ((cursorObject isKindOf "landVehicle") || (cursorObject isKindOf "Ship") || (cursorObject isKindOf "Air")) then {
if !(dialog) then {
if ((player distance cursorObject) < ((boundingBox cursorObject select 1) select 0)+2 && (!(player getVariable ["restrained",false])) && (!(player getVariable ["playerSurrender",false])) && !life_isknocked && !life_istazed) then {
['vehicle_menu'] spawn CBX_fnc_openInteraction;
_exit = true;
};
};
};
};
if (_exit) exitWith {};