Jump to content

Recommended Posts

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

 

foto-H.jpg

Share this post


Link to post
Share on other sites

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;
		};
	};
}];

 

  • Like 2

Share this post


Link to post
Share on other sites
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
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.

  • Like 2

Share this post


Link to post
Share on other sites

very well thank you, I will tell you what the result was

Share this post


Link to post
Share on other sites
//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;

 

  • Like 4

Share this post


Link to post
Share on other sites

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
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
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.

  • Like 2

Share this post


Link to post
Share on other sites
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

 

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

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"

 

  • Like 1

Share this post


Link to post
Share on other sites

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×