avibird 1 141 Posted September 21, 2019 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
Mr H. 400 Posted September 21, 2019 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
avibird 1 141 Posted September 22, 2019 @Mr H. Thank you sir. Easy fix. Share this post Link to post Share on other sites
bendy303 0 Posted September 11, 2023 how do I do this with code? Share this post Link to post Share on other sites
pierremgi 4740 Posted September 11, 2023 In description.ext: respawnButton = 0; There is no command for script. Share this post Link to post Share on other sites
Schatten 268 Posted September 11, 2023 description.ext: onPauseScript = "onPause.sqf"; onPause.sqf: params ["_display"]; (_display displayCtrl 1010) ctrlEnable false; Share this post Link to post Share on other sites
bendy303 0 Posted September 22, 2023 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
bendy303 0 Posted September 22, 2023 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
bendy303 0 Posted September 23, 2023 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