Hallo erstmal ich habe ein problem mit einem ausweis script da sich dieses nicht ausführen lässt, heißt ich gehe zu einem spieler gehe ins scroll menü und dort wird mir keine Action angezeigt die sich "Ausweis zeigen" nennt.
ich bin das tutorial mehrmals durchgegangen und habe es auf fehler überprüft allerdings finde ich nichts.
Das tutorial: [Tutorial] arma3 ausweiß script
Code
/*
File: fn_setupActions.sqf
Author:
Description:
Master addAction file handler for all client-based actions.
*/
switch (playerSide) do {
case civilian: {
//Drop fishing net
life_actions = [player addAction[localize "STR_pAct_DropFishingNet",life_fnc_dropFishingNet,"",0,false,false,"",'
(surfaceisWater (getPos vehicle player)) && (vehicle player isKindOf "Ship") && life_carryWeight < life_maxWeight && speed (vehicle player) < 2 && speed (vehicle player) > -1 && !life_net_dropped ']];
//Rob person
life_actions = life_actions + [player addAction[localize "STR_pAct_RobPerson",life_fnc_robAction,"",0,false,false,"",'
!isNull cursorObject && player distance cursorObject < 3.5 && isPlayer cursorObject && animationState cursorObject == "Incapacitated" && !(cursorObject getVariable["robbed",FALSE]) ']];
//Ausweis
life_actions = life_actions + [player addAction["Ausweis zeigen",life_fnc_Lizenzzeigen,"",1,false,true,"",'!isNull cursorTarget && cursorTarget isKindOf "Man"']];
};
switch (playerSide) do{
case west:
{
// nano EMP Little Bird
life_actions = life_actions + [player addAction["<t color='#FF0000'>EMP Operator Konsole öffnen</t>",life_fnc_openEmpMenu,[],8,false,false,"",'[_this] call life_fnc_isEmpOperator']];
//Ausweis
life_actions = life_actions + [player addAction["Ausweis zeigen",life_fnc_Lizenzzeigen,"",1,false,true,"",'!isNull cursorTarget && cursorTarget isKindOf "Man"']];
case independent:
{
//Ausweis
life_actions = life_actions + [player addAction["Ausweis zeigen",life_fnc_Lizenzzeigen,"",1,false,true,"",'!isNull cursorTarget && cursorTarget isKindOf "Man"']];
};
Alles anzeigen