Hallo zusammen,
ich habe da ein Skriptproblem, wenn man sich ergibt, nimmt der Charakter
die Hände hinter den Kopf, kann diese mit der selben Taste dennoch
nicht mehr runter nehmen.
Hier die Skriptdateien/Schnipsel:
fn_keyHandler.sqf Schnipsel:
Spoiler anzeigen
//Ergeben (Schift+G)
case 34: {
if (_shift) then {
if (player getVariable ["playerSurrender",false]) then {
player setVariable ["playerSurrender",false,true];
} else {
[] spawn life_fnc_surrender;
};
_handled = true;
};
};
Und hier das Skript selber:
Spoiler anzeigen
#include "..\..\script_macros.hpp"
/*
File: fn_surrender.sqf
Author:
Description: Causes player to put their hands on their head.
*/
if ( player getVariable ["restrained",false] ) exitWith {};
if ( player getVariable ["Escorting",false] ) exitWith {};
if ( vehicle player != player ) exitWith {};
if ( speed player > 1 ) exitWith {};
if (player getVariable ["playerSurrender",false]) then {
player setVariable ["playerSurrender",false,true];
} else {
player setVariable ["playerSurrender",true,true];
};
while {player getVariable ["playerSurrender",false]} do {
player playMove "AmovPercMstpSnonWnonDnon_AmovPercMstpSsurWnonDnon";
if (!alive player (vehicle player) != player) then { player setVariable ["playerSurrender",false,true]; };
};
player playMoveNow "AmovPercMstpSsurWnonDnon_AmovPercMstpSnonWnonDnon";
In den Logs steht dazu nichts. -.-
Ich hoffe mir kann da wer helfen.
Danke im vorraus
Recon