Jump to content

Lukas Lee

Member
  • Content Count

    6
  • Joined

  • Last visited

  • Medals

Community Reputation

2 Neutral

About Lukas Lee

  • Rank
    Rookie
  1. Thank you very much now everything works as it should. I just have to find a way that the holdAction is visible for all players at the same time and is deleted again for all after ending. Thanks for your help 🙂
  2. Okay thanks. I found out that you can just set allPlayers to true and it works fine. But now the task is not switched to successful and deleted. I already tried not doing it with remoteExec since both actually have global effects but somehow it still doesn't work. Do you have any idea?
  3. Thanks for your answer. 🙂 I have now copied the script directly into initServer.sqf and there it works as it should. The only problem is that the task that is created at the beginning is only executed locally and therefore it is not visible. Do you have any idea how I can do this with remoteExec?
  4. If I set the script to false with the third parameter, I also have two stopping options. When I run the code through the initServer.sqf, nothing is displayed. I also tried the initServerPlayer.sqf and nothing is displayed as well. The goal is that when a player finish the holdAction, the option should be cleared for all players. Do you have any idea how to fix this?
  5. Hello guys, I have a strange problem with the following script: tsk = format ["tsk%1", random 100]; [allPlayers, tsk, ["Hack the watchtower to get information about the position of the opposing players!", "Watchtower", ""], laptop, "ASSIGNED", 99, true, "download", true] call BIS_fnc_taskCreate; [laptop, "Activate watchtower", "\a3\ui_f\data\igui\cfg\holdactions\holdaction_connect_ca.paa", "\a3\ui_f\data\igui\cfg\holdactions\holdaction_connect_ca.paa", "player distance laptop < 5", "player distance laptop < 3", {num = execVM "watchtower\durring.sqf";}, {}, {nul = execVM "watchtower\gegner_markieren_v3.sqf", nul = execVM "watchtower\sleep.sqf", [tsk, "SUCCEEDED", true] remoteExec ["BIS_fnc_taskSetState", 0, true], sleep 0.1, [tsk, allPlayers, true] remoteExec ["BIS_fnc_deleteTask", 0, true];}, {["Hacking canceled!"] remoteExec ["hintSilent", 0, true], sleep 1; [""] remoteExec ["hintSilent", 0, true], call{playSound "cancel";}, execVM "watchtower\deletion_sound.sqf";}, [], 15, 0, true, false] remoteExec ["bis_fnc_holdactionadd", 0, true]; With the script I add a holdaction function to a laptop. When I start the mission in the Eden editor in singleplayer or multiplayer everything works as it should. The script is executed by the init.sqf and the holdaction function is displayed on the laptop. When I complete it with the spacebar it disappears again as it should. However, when I host the mission on my dedicated Arma server, the holdaction appears twice for some reason. Once with text and once without. Both run the same code when I use it and then disappear, but reappearing twice when I run the script again. Can any of you help me further? And tell me why this happens? Thanks
  6. Lukas Lee

    Dynamic Player Markers

    The script is really helpful, you did a great job! At the moment I'm building a system that only shows the players from the other faction on the map. Is there a way to set the script to only show opponents? I would be very happy if I still get an answer after 10 years ^^
×