Jump to content
avibird 1

How to disable the respawn button in Arma game main menu

Recommended Posts

Need help again lol

 

I am working on a modified  AIS wounding system script. I already disabled the respawn options from the script but the Arma menu still has the respond and it's not greyed out and if the player attempts to respawn the unit is killed. I am using team switch respawn number 5 but the playable units will never bleed out only stay unconscious and the mission ends when all playable units are unconscious. 

 

How can I disable the respawn button from the arma main menu. 

Share this post


Link to post
Share on other sites

In your mission in the editor under attributes >> multiplayer uncheck allow manual respawn (not sure I have the correct labels I'm not at my computer but the setting's there)

Share this post


Link to post
Share on other sites

description.ext:

onPauseScript = "onPause.sqf";

onPause.sqf:

params ["_display"];

(_display displayCtrl 1010) ctrlEnable false;

 

Share this post


Link to post
Share on other sites
On 9/11/2023 at 9:00 PM, Schatten said:

description.ext:


onPauseScript = "onPause.sqf";

onPause.sqf:


params ["_display"];

(_display displayCtrl 1010) ctrlEnable false;

 


same code for in a mod?

Share this post


Link to post
Share on other sites

I have also tried this code for using CBA functions, and it also does not work.

 

// Define a function to handle the pause event
_handlePause = {
    params ["_unit", "_pauseState"];
    
    if (_pauseState) then {
        diag_log "Game is paused!";
    }
};

// Add an event handler for the pause event
["onPause", { true }] call CBA_fnc_addEventHandler;
["onPause", _handlePause] call CBA_fnc_addEventHandler;

 

Share this post


Link to post
Share on other sites

other code I tried, so respawn is disabled when escape key pressed:

 

moduleName_keyDownEHId = (findDisplay 46) displayAddEventHandler ["KeyDown", "if ((_this select 1) == 1) 
then {
diag_log 'escape pressed';
((findDisplay 49) displayCtrl 1010) ctrlEnable false;
};"] 

 

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

×