Hallo, wir möchten gerne das Knock out Feature alle unseren Fraktionen erlauben daher habe ich folgenden Code angepasst:
//Knock out, this is experimental and yeah... (Shift + G)
case 34: {
if (_shift) then {_handled = true;};
if (_shift && playerSide isEqualTo civilian or west && !isNull cursorObject && cursorObject isKindOf "Man" && isPlayer cursorObject && alive cursorObject && cursorObject distance player < 4 && speed cursorObject < 1) then {
if ((animationState cursorObject) != "Incapacitated" && (currentWeapon player == primaryWeapon player currentWeapon player == handgunWeapon player) && currentWeapon player != "" && !life_knockout && !(player getVariable ["restrained",false]) && !life_istazed && !life_isknocked) then {
[cursorObject] spawn life_fnc_knockoutAction;
};
};
};
leider funktioniert dieser nicht hat jemand eine Idee?