Jump to content
Barba-negra

close interface zeus or look

Recommended Posts

Hello friends, I am here again, you are working on a mod where I am trying to block the player's free cameras during the use of the mod, thanks to many colleagues I have managed to block the splendid camera, and I am only missing the zeus camera, I have been investigating that the zeus unites the action of "curatorInterface", and I did a simple scritps where when the player presses the interface of zeus it immediately closes

 

 

No_Modo_Dios = [] spawn {

        waitUntil {!isNull findDisplay 46};
        
        (findDisplay 46) displayAddEventHandler ["keyDown","_this call NO_fnc_keyDown"];
        
};

NO_fnc_keyDown = {
   _dikCode = _this select 1;

   if (_dikCode in actionKeys "curatorInterface"&& isNil "Nover") then {Nover = true; 
      
   execVM "no_modo_dioses.sqf";
    
 };
};

 

the scripts:

 

//no_modo_dioses.sqf

 

[] spawn {

 

sleep 1;

findDisplay 312 closeDisplay 2;

 

};

 

the problem is that when it runs, it doesn't do it a second time, the second time I try to open the zeus it opens without a problem, please help guys, what am I doing wrong?

 

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

×