Search the Community
Showing results for tags 'stack action'.
Found 2 results
-
Hello everyone, I'm having trouble adding actions to an object. Locally everything goes well. the code below works well and the actions are displayed every 2 after the others. However once on the server, it displays the last action executed by the script ... please help? if (TerminalArsenal) then {[hds_terminal] spawn fnc_EstUnArsenal}; if (TerminalDeSaute) then {[hds_terminal,"Insertion",7] remoteExecCall ["fnc_EstUnTerminalDeSaut",2]}; if (TerminalDeGroupeIA) then {[hds_terminal,"Groupe:R.O.S",1] remoteExecCall ["fnc_EstUnTerminalDeGroupeIA",2]}; if (TerminalDeGroupeIARHS) then {[hds_terminal,"Groupe:R.H.S",2] remoteExecCall ["fnc_EstUnTerminalDeGroupeIARHS",2]}; if (TerminalDeGroupeIAPERSO) then {[hds_terminal,"Groupe:H.D.S",3] remoteExecCall ["fnc_EstUnTerminalDeGroupePERSO",2]}; if (TerminalMission) then {[hds_terminal,"Mission|Suivante",4] remoteExecCall ["fnc_EstunTerminalMission",2]}; if (TerminalDeNeutralisation) then {[hds_terminal,"Basculer Civil|Militaire",5] remoteExecCall ["fnc_JoueursNeutre",2]}; if (TerminalDeSauvegarde) then {[hds_terminal,"Sauver|Equipement",6] remoteExecCall ["fnc_SauvegardeEquipements",2]}; if (TerminalDeDebugger) then {[hds_terminal,"Nettoyer|Mission",5] remoteExecCall ["fnc_EstUnDebugger",2]};
-
Hello everyone, I'm having trouble adding actions to an object. Locally everything goes well. the code below works well and the actions are displayed every 2 after the others. However once on the server, it displays the last action executed by the script ... please help? if (TerminalArsenal) then {[hds_terminal] spawn fnc_EstUnArsenal}; if (TerminalDeSaute) then {[hds_terminal,"Insertion",7] remoteExecCall ["fnc_EstUnTerminalDeSaut",2]}; if (TerminalDeGroupeIA) then {[hds_terminal,"Groupe:R.O.S",1] remoteExecCall ["fnc_EstUnTerminalDeGroupeIA",2]}; if (TerminalDeGroupeIARHS) then {[hds_terminal,"Groupe:R.H.S",2] remoteExecCall ["fnc_EstUnTerminalDeGroupeIARHS",2]}; if (TerminalDeGroupeIAPERSO) then {[hds_terminal,"Groupe:H.D.S",3] remoteExecCall ["fnc_EstUnTerminalDeGroupePERSO",2]}; if (TerminalMission) then {[hds_terminal,"Mission|Suivante",4] remoteExecCall ["fnc_EstunTerminalMission",2]}; if (TerminalDeNeutralisation) then {[hds_terminal,"Basculer Civil|Militaire",5] remoteExecCall ["fnc_JoueursNeutre",2]}; if (TerminalDeSauvegarde) then {[hds_terminal,"Sauver|Equipement",6] remoteExecCall ["fnc_SauvegardeEquipements",2]}; if (TerminalDeDebugger) then {[hds_terminal,"Nettoyer|Mission",5] remoteExecCall ["fnc_EstUnDebugger",2]}; Below the code of one of my actions params ["_UnObjet","_Message","_Ordre"]; _Message = format ["<t color='#353531'>H</t>|%1",_Message]; _Icone = "\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_search_ca.paa"; [_UnObjet, //L'objet sur lequel l'action est attachée | The object on which the action is attached _Message, //Titre de l'action | Action title _Icone, //L'icone qui est affiché à l'écran | The icon that is displayed on the screen _Icone, //L'icone de progression | The icon displayed on the progress screen "_this distance _target < 5", //Contion pour que l'action soit affiché "_this distance _target < 5", //Condition pour que l'action progresse {}, //Le code exécuté quand l'action commence {},//Le code exécuté quand l'action est entrain de progressé {ExecVM "atm_airdrop\atm_airdrop.sqf"}, //Le code exécuté dans l'action est terminée {}, //Le code exécuté si l'action est intérrompu [], //Arguments passed to the scripts as _this select 3 1, //Durée de l'action _Ordre, //Prioritée | Priority (ordre on the screen) false, //Supprimer quand l'action est terminé ? | if remove after down action false //Montrer dans l'etat d'inconscience ? | ] remoteExec ["BIS_fnc_holdActionAdd",0,_UnObjet]; //-2 : Tous le monde sauf le serveur In conclusion, this code is executed only by the server. however, the action is visible to all clients. Clients only see the last action that the server performs. locally all works properly. if the code is executed by the client, then yes it works, but each client will generate duplicates.