case 39: {
if (life_inv_spikeStrip >= 1) then {
if (!isNull life_spikestrip) exitWith {hint localize "STR_ISTR_SpikesDeployment";};
if ([false, "spikeStrip", 1] call life_fnc_handleInv) then {
[] spawn life_fnc_spikeStrip;
};
_handled = true;
};
};
case 39: {
if (life_inv_spikeStrip >= 1) then {
if (!isNull life_spikestrip) exitWith {hint localize "STR_ISTR_SpikesDeployment";};
if ([false, "spikeStrip", 1] call life_fnc_handleInv) then {
[] spawn life_fnc_spikeStrip;
};
_handled = true;
};
};
MerciHello, dans ton fn_keyHandler.sqf, il faut ajouter dans le switch (_code) do { :
Code:case 39: { if (life_inv_spikeStrip >= 1) then { if (!isNull life_spikestrip) exitWith {hint localize "STR_ISTR_SpikesDeployment";}; if ([false, "spikeStrip", 1] call life_fnc_handleInv) then { [] spawn life_fnc_spikeStrip; }; _handled = true; }; };
Ici j'ai mis la touche M (= 39), mais tu peux mettre autre chose en regardant la liste en bas de cette page : https://community.bistudio.com/wiki/DIK_KeyCodes