private _config = missionConfigFile >> "The_Programmer_AdvancedInsure";
private _tracker = getText (_config >> "tracker");
[false,_tracker,1] call life_fnc_handleInv;
life_action_inUse = true;
private _config = missionConfigFile >> "The_Programmer_AdvancedInsure";
private _tracker = getText (_config >> "tracker");
if !(_tracker in (items player)) exitWith {hint "Vous...
[cursorObject] spawn advanced_insurance_fnc_gpsTracker;
[cursorObject] spawn advanced_insurance_fnc_checkTracker;
[] spawn max_plants_fnc_waterPlante;
[] spawn max_plants_fnc_deletePlante;
["CLASSNAME"] spawn max_plants_fnc_plantPlante;
Dans le config master du script je peux donc mettre la class name de l'oject physique ?Hello, voici les scripts à appeler pour ces différentes fonctionnalités :
Pour le tracker d'Advanced Insure :
Code:[cursorObject] spawn advanced_insurance_fnc_gpsTracker;
Pour le ciseau d'Advanced Insure :
Code:[cursorObject] spawn advanced_insurance_fnc_checkTracker;
Pour l'arrosoir de Growing System :
Code:[] spawn max_plants_fnc_waterPlante;
Pour le désherbant de Growing System :
Code:[] spawn max_plants_fnc_deletePlante;
Pour planter une graine :
Remplace "CLASSNAME" par la class de l'objet utiliséCode:["CLASSNAME"] spawn max_plants_fnc_plantPlante;
private _config = missionConfigFile >> "The_Programmer_AdvancedInsure";
private _tracker = getText (_config >> "tracker");
[false,_tracker,1] call life_fnc_handleInv;
life_action_inUse = true;
private _config = missionConfigFile >> "The_Programmer_AdvancedInsure";
private _tracker = getText (_config >> "tracker");
if !(_tracker in (items player)) exitWith {hint "Vous devez avoir un GPS Tracker dans votre sac à dos !";};
if !((_vehicle isKindOf "LandVehicle") || (_vehicle isKindOf "Ship") || (_vehicle isKindOf "Air")) exitWith {hint (["STR_NOT_A_VEHICLE","The_Programmer_AdvancedInsure","Advanced_Insurance_Localization"] call theprogrammer_core_fnc_localize);};
if ((getPlayerUID player) in (_vehicle getVariable ["vehicle_trackers_connected",[]])) exitWith {hint (["STR_ALREADY_PLACED_TRACKER","The_Programmer_AdvancedInsure","Advanced_Insurance_Localization"] call theprogrammer_core_fnc_localize);};
private _config = missionConfigFile >> "The_Programmer_AdvancedInsure";
private _tracker = getText (_config >> "tracker");
if !(_tracker in (items player)) exitWith {hint "Vous devez avoir un GPS Tracker dans votre sac à dos !";};
life_action_inUse = true;
disableSerialization;
hint (["STR_TRACKER_FINISH","The_Programmer_AdvancedInsure","Advanced_Insurance_Localization"] call theprogrammer_core_fnc_localize);
player removeItem _tracker;
if !([false,_item,1] call life_fnc_handleInv) exitWith {};
player removeItem _item;
Et pour l'action de planter, je fait une ligne de code que il double clique qui appel le fichier fn_plantPlante ?Pour Growing System dans ton @The_Programmer/addons/growing_system/client/fn_plantPlante.sqf il faut remplacer cette ligne :
par :Code:if !([false,_item,1] call life_fnc_handleInv) exitWith {};
Code:player removeItem _item;