• Ramasser les ressources a la molette


    Bonjour a tous,

    Petit soucis, j’ai ajouter dans mon ficher fn_setupActions.sqf des scripts pour ramasser les ressources a l’aide de la molette, seul soucis, une fois avoir utiliser la molette, le nom " Ramasser peches " par exemple s’affiche bien mais l’action ne s’execute pas … voiçi mes lignes

    	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 cursorTarget && player distance cursorTarget < 3.5 && isPlayer cursorTarget && animationState cursorTarget == "Incapacitated" && !(cursorTarget getVariable["robbed",FALSE]) ']];  
    		//Boule Quiès  
    		life_actions = [player addAction["<t color='#ADFF2F'>Boule Quiès Oui/Non</t>",{if (soundVolume != 1) then {1 fadeSound 1;} else {1 fadeSound 0.1;};},"",-6,false,false,"",'vehicle player != player || soundVolume != 1']];  
    		//Gathers Diamonds  
                    life_actions = life_actions + [player addAction["Gather Diamond",life_fnc_gatherAction,["diamond",1],0,false,false,"",'  
                    !life_action_in_use && ((player distance (getMarkerPos "diamond_1") < 80) OR (player distance (getMarkerPos "diamond_2") < 80)  OR (player distance (getMarkerPos "diamond_3") < 150) OR (player distance (getMarkerPos "diamond_4") < 150)) && (vehicle player == player) && (life_carryWeight + (["diamond"] call life_fnc_itemWeight)) <= life_maxWeight ']];  
    		//Gathering Meth  
    		life_actions = life_actions + [player addAction["Récolter Ephedra",life_fnc_gatherAction,["ephedrau",1],0,false,false,"",'  
    		!life_action_in_use && (player distance (getMarkerPos "meth_1") < 80) && (vehicle player == player) && (life_carryWeight + (["ephedrau"] call life_fnc_itemWeight)) <= life_maxWeight ']];  
    		//Gathering Crabes By Heimdall #AltisAurore.fr  
    		life_actions = life_actions + [player addAction["Récolter Crabes",life_fnc_gatherAction,["crabe1",3],0,false,false,"",'  
    		!life_action_in_use && (player distance (getMarkerPos "crabe_1") < 80) && (vehicle player == player) && (life_carryWeight + (["crabe1"] call life_fnc_itemWeight)) <= life_maxWeight ']];  
    		//Gathering Reliques By Heimdall #AltisAurore.fr  
    		life_actions = life_actions + [player addAction["Récolter des reliques",life_fnc_gatherAction,["relique1",1],0,false,false,"",'  
    		!life_action_in_use && (player distance (getMarkerPos "Heimdall_1") < 80) OR (player distance (getMarkerPos "Heimdall_1_1") < 80) && (vehicle player == player) && (life_carryWeight + (["relique1"] call life_fnc_itemWeight)) <= life_maxWeight ']];  
    		life_actions = life_actions + [player addAction["Récolter la cocaine",life_fnc_gatherAction,["cocaine",1],0,false,false,"",'  
    		!life_action_in_use && (player distance (getMarkerPos "cocaine_1") < 80) && (vehicle player == player) && (life_carryWeight + (["cocaine"] call life_fnc_itemWeight)) <= life_maxWeight ']];  
    		life_actions = life_actions + [player addAction["Récolter du Cannabis",life_fnc_gatherAction,["cannabis",1],0,false,false,"",'  
    		!life_action_in_use && (player distance (getMarkerPos "weed_1") < 80) && (vehicle player == player) && (life_carryWeight + (["cannabis"] call life_fnc_itemWeight)) <= life_maxWeight ']];  
    		life_actions = life_actions + [player addAction["Récolter Heroine",life_fnc_gatherAction,["heroinu",1],0,false,false,"",'  
    		!life_action_in_use && (player distance (getMarkerPos "heroin_1") < 80) && (vehicle player == player) && (life_carryWeight + (["heroinu"] call life_fnc_itemWeight)) <= life_maxWeight ']];  
    		life_actions = life_actions + [player addAction["Récolter Cuivre",life_fnc_gatherAction,["copperore",1],0,false,false,"",'  
    		!life_action_in_use && (player distance (getMarkerPos "lead_1") < 80) OR (player distance (getMarkerPos "lead_2") < 80) && (vehicle player == player) && (life_carryWeight + (["copperore"] call life_fnc_itemWeight)) <= life_maxWeight ']];  
    		life_actions = life_actions + [player addAction["Récolter Sel",life_fnc_gatherAction,["salt",1],0,false,false,"",'  
    		!life_action_in_use && (player distance (getMarkerPos "salt_1") < 80) && (vehicle player == player) && (life_carryWeight + (["salt"] call life_fnc_itemWeight)) <= life_maxWeight ']];  
    		life_actions = life_actions + [player addAction["Récolter Pétrole",life_fnc_gatherAction,["oilu",1],0,false,false,"",'  
    		!life_action_in_use && (player distance (getMarkerPos "oil_2") < 80) OR (player distance (getMarkerPos "oil_3") < 80)&& (vehicle player == player) && (life_carryWeight + (["oilu"] call life_fnc_itemWeight)) <= life_maxWeight ']];  
    		life_actions = life_actions + [player addAction["Récolter Fer",life_fnc_gatherAction,["ironore",1],0,false,false,"",'  
    		!life_action_in_use && (player distance (getMarkerPos "iron_1") < 80) && (vehicle player == player) && (life_carryWeight + (["ironore"] call life_fnc_itemWeight)) <= life_maxWeight ']];  
    		life_actions = life_actions + [player addAction["Récolter Roche",life_fnc_gatherAction,["rock",1],0,false,false,"",'  
    		!life_action_in_use && (player distance (getMarkerPos "rock_1") < 80) && (vehicle player == player) && (life_carryWeight + (["rock"] call life_fnc_itemWeight)) <= life_maxWeight ']];  
    		life_actions = life_actions + [player addAction["Récolter Diamant",life_fnc_gatherAction,["diamond",1],0,false,false,"",'  
    		!life_action_in_use && (player distance (getMarkerPos "diamond_1") < 80) && (vehicle player == player) && (life_carryWeight + (["diamond"] call life_fnc_itemWeight)) <= life_maxWeight ']];  
    		life_actions = life_actions + [player addAction["Récolter les Pommes",life_fnc_gatherAction,["apple",3],0,false,false,"",'  
    		!life_action_in_use && (player distance (getMarkerPos "apple_1") < 80) OR (player distance (getMarkerPos "apple_2") < 80) && (vehicle player == player) && (life_carryWeight + (["apple"] call life_fnc_itemWeight)) <= life_maxWeight ']];  
    		life_actions = life_actions + [player addAction["Récolter les Pêches",life_fnc_gatherAction,["peach",3],0,false,false,"",'  
    		!life_action_in_use && (player distance (getMarkerPos "peaches_2") < 80) OR (player distance (getMarkerPos "peaches_3") < 80) && (vehicle player == player) && (life_carryWeight + (["peach"] call life_fnc_itemWeight)) <= life_maxWeight ']];  
    	};  
    };  
    

    Help …

  • //Gathering Reliques By Heimdall #AltisAurore.fr

    lolll

    sa sera tout pour moi bonne chance

  • @Loki’s きゃを’s きゃを Lol j’avais pas vu

Messages 3Vues 485