Barba-negra 117 Posted March 21, 2020 Hi guys, how are you? Excuse me, would you like to know if there is any way to make the player not open this camera? I would like to block that access Share this post Link to post Share on other sites
7erra 629 Posted March 21, 2020 Put this in the initPlayerLocal.sqf: if (!hasInterface) exitWith {}; waitUntil {!isNull findDisplay 46}; findDisplay 46 displayAddEventHandler ["KeyDown",{ if (inputAction "ingamePause" > 0) then { [] spawn { waitUntil {!isNull findDisplay 49}; (findDisplay 49 displayCtrl 13288) ctrlEnable false; }; }; }]; 3 Share this post Link to post Share on other sites
Barba-negra 117 Posted March 21, 2020 38 minutes ago, 7erra said: Ponga esto en initPlayerLocal.sqf: oh big brother thank you very much a question, with this I can also block the option just above viewer (espectador)? Share this post Link to post Share on other sites
7erra 629 Posted March 22, 2020 if (!hasInterface) exitWith {}; waitUntil {!isNull findDisplay 46}; findDisplay 46 displayAddEventHandler ["KeyDown",{ if (inputAction "ingamePause" > 0) then { [] spawn { waitUntil {!isNull findDisplay 49}; [13287, 13288] apply { (findDisplay 49 displayCtrl _x) ctrlEnable false; }; }; }; }]; Should work. Not tested but the IDCs should be correct. 2 Share this post Link to post Share on other sites
Barba-negra 117 Posted March 22, 2020 very well thank you, I will tell you what the result was Share this post Link to post Share on other sites
Larrow 2822 Posted March 22, 2020 //Description.ext onPauseScript = "onPause.sqf"; //onPause.sqf params[ "_pauseMenuDisplay" ]; _debugConsole = _pauseMenuDisplay displayCtrl 13184; //Debug console { _debugConsole controlsGroupCtrl _x ctrlEnable false; } forEach[ 13287, //Spectator 13288 //SplendidCamera ]; OR Just don't allow access to the debugConsole. //Description.ext enableDebugConsole = 0; 5 Share this post Link to post Share on other sites
Barba-negra 117 Posted March 22, 2020 thanks friends, you are professionals in this Share this post Link to post Share on other sites
Barba-negra 117 Posted March 22, 2020 guys I would like to ask you another question, is it possible to also block all access to zeus? my intention is that the player does not have any access to free cameras Share this post Link to post Share on other sites
Barba-negra 117 Posted March 24, 2020 On 21/3/2020 at 21:02, 7erra said: Deberia trabajar. No probado, pero los IDC deben ser correctos. hello brother, the script is giving me an error on this line ! hasInterface What could we be doing wrong? ... the other one posted by @larrow looks good, but I don't want to touch the description Share this post Link to post Share on other sites
7erra 629 Posted March 25, 2020 17 hours ago, Barba-negra said: hello brother, the script is giving me an error on this line ! hasInterface I am 99% sure that there is no error in that line. My guess is that you are trying to execute the code in an unscheduled environment and it is throwing an error because of the waitUntil statement. Anyway, I would recommend to use @Larrow's code since it is way smarter. 17 hours ago, Barba-negra said: the other one posted by @larrow looks good, but I don't want to touch the description Why do you not want to make a description.ext? It is really only that one line that @Larrow posted that you have to add to the description.ext. 2 Share this post Link to post Share on other sites
Barba-negra 117 Posted March 25, 2020 1 hour ago, 7erra said: Estoy 99% seguro de que no hay error en esa línea. Supongo que está intentando ejecutar el código en un entorno no programado y está arrojando un error debido a la instrucción waitUntil. De todos los modos, recomendaría usar el código de @Larrow ya que es mucho más inteligente. ¿Por qué no quieres hacer una descripción.ext? Realmente es solo esa línea que @Larrow publicó la que debe agregar a la descripción.ext. excuse me friend, it worked, your scritp works Share this post Link to post Share on other sites
Barba-negra 117 Posted March 25, 2020 1 hour ago, 7erra said: I am 99% sure that there is no error in that line. My guess is that you are trying to execute the code in an unscheduled environment and it is throwing an error because of the waitUntil statement. Anyway, I would recommend to use @Larrow's code since it is way smarter. Why do you not want to make a description.ext? It is really only that one line that @Larrow posted that you have to add to the description.ext. :D Share this post Link to post Share on other sites
Barba-negra 117 Posted March 25, 2020 Everything works fine guys, I would like to ask you where I can find the list where you specify to which displayCtrl number each one belongs? I was reading this page but it does not specify the list of numbers https://community.bistudio.com/wiki/displayCtrl Share this post Link to post Share on other sites
7erra 629 Posted March 25, 2020 Two things: 1) The display config, either look at it in the config browser or setup the P drive and export the game files 2) These two files contain most IDCs: "a3\ui_f\hpp\defineresincldesign.inc" "a3\ui_f\hpp\defineresincl.inc" 1 Share this post Link to post Share on other sites
Barba-negra 117 Posted March 26, 2020 I'm trying to find it but I can't find the path, there is an addons called a3 in the game folder but it doesn't have the same path inside Share this post Link to post Share on other sites
Harzach 2517 Posted March 26, 2020 Arma 3 > Addons > ui_f.pbo 1 Share this post Link to post Share on other sites
Barba-negra 117 Posted March 26, 2020 Hace 6 horas, Harzach dijo: Arma 3> Complementos> ui_f.pbo thanks mate Share this post Link to post Share on other sites
Alert23 215 Posted April 16, 2020 is there also an ID for the Restart Button in the PauseMenu? i searched for it here On 3/25/2020 at 11:54 PM, 7erra said: "a3\ui_f\hpp\defineresincldesign.inc" but i cant find it, i wanted to disable restart button. 1 Share this post Link to post Share on other sites
7erra 629 Posted April 16, 2020 The idc for the restart button is 119. it is acutally easier to look up the idcs in the config unless you want to use the #define macros, so either config browser or unpacked game data. 1 Share this post Link to post Share on other sites