total 1 Posted April 19, 2014 (edited) Good evening, I'm creating a COOP mission and I can't get the revive script to work because of the respawn menu pops up before the revive countdown starts. I can't even get the message: "You are dead" from the A3 wounding System. Only the respawn menu. I use A3 wounding System (ais_injury) by Psycho. In the description.ext, I use: - and the Revive script I use can you find with the link above. respawn = 3; respawndelay = 10; respawnVehicleDelay = 15; respawnDialog = true; respawnTemplatesWest[] = {"MenuPosition"}; joinUnassigned = 0; Could one clever guy look at the script by Psycho, and see if it is possible to get the Respawn menu to only show up when pressing the respawn button, the countdown is finished and the player is dead or pressing suicide. I would be eternally grateful if this was possible. :icon_hug: Happy Easter to you all! best regards, Total Edited April 19, 2014 by Total Share this post Link to post Share on other sites
total 1 Posted April 19, 2014 (edited) Maybe I need to remove respawnTemplatesWest[] = {"MenuPosition"}; from the description.ext and add it in the init file for the revive script? init_ais.sqf: if (tcb_ais_dead_dialog == 1) then { if (isNil "respawndelay") then { _num = getNumber (missionConfigFile/"respawndelay"); if (_num != 0) then { missionNamespace setVariable ["tcb_ais_respawndelay", _num]; }; } else { missionNamespace setVariable ["tcb_ais_respawndelay", 999]; }; tcb_ais_killcam_quotes = [ [(localize "STR_QUOTE_1"),(localize "STR_AUTHOR_1")], [(localize "STR_QUOTE_2"),(localize "STR_AUTHOR_2")], [(localize "STR_QUOTE_3"),(localize "STR_AUTHOR_3")], [(localize "STR_QUOTE_4"),(localize "STR_AUTHOR_4")], ]; if (_unit == player) then { _unit AddEventHandler ["killed",{_this spawn tcb_fnc_deadcam}]; }; }; Like: if (_unit == player) then { _unit AddEventHandler ["killed",{_this spawn tcb_fnc_deadcam}]; sleep 1; _unit RUN RESPAWNTEMPLATE AFTER DEADCAM; }; or maybe something with: waitUntil{!(isNil "tcb_fnc_deadcam")}; sleep 1; respawnTemplatesWest[] = {"MenuPosition"}; Is there anyone who can help me? I'm out of ideas! :P Edited April 19, 2014 by Total Share this post Link to post Share on other sites
lkincheloe 12 Posted April 19, 2014 The main issue I found is they broke MenuPosition to spawn you dead by default. Only thing you can do for now is to set it to Counter and wait for the next update (it's fixed on Dev Branch). Share this post Link to post Share on other sites
total 1 Posted April 19, 2014 Thanks for the reply! But isn't possible to force MenuPosition to only run after deadcam is finished? Share this post Link to post Share on other sites
lkincheloe 12 Posted April 19, 2014 It might be possible, but it would probably require you to intercept the code passing through the functions governing MenuPosition to make it wait long enough for DeadCam to do it's thing. Share this post Link to post Share on other sites
total 1 Posted April 20, 2014 Too hard for me, I think! :) I hope the next patch is not far away! Share this post Link to post Share on other sites
KC Grimes 79 Posted April 20, 2014 Ah, another one seeking to do this! The MenuPosition dialog is amazing, no? Not to steal you away from the other script, but I am currently working on my own revive script that successfully integrates with that menu. It is most certainly not complete and still requires testing, but I may be posting up a beta version here soon as it is unfortunately just taking me a lot of time, and time I no longer have over the next 2 weeks due to finals. e Share this post Link to post Share on other sites