From 9d64113241bbc25fa647e771e7540fe7dee1368f Mon Sep 17 00:00:00 2001 From: Ambroise Garel <47314805+akaAgar@users.noreply.github.com> Date: Tue, 5 Aug 2025 17:48:39 +0200 Subject: [PATCH] Added "press key to respawn" message on single-player death --- Script/The Universal Mission/Mission.lua | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Script/The Universal Mission/Mission.lua b/Script/The Universal Mission/Mission.lua index addea63..2a04e16 100644 --- a/Script/The Universal Mission/Mission.lua +++ b/Script/The Universal Mission/Mission.lua @@ -205,11 +205,15 @@ do end end - -- if TUM.settings.getValue(TUM.settings.id.MULTIPLAYER) then return end - -- When player dies in single-player, fail the mission - -- if event.id == world.event.S_EVENT_CRASH or event.id == world.event.S_EVENT_EJECTION or event.id == world.event.S_EVENT_PILOT_DEAD then - -- TUM.mission.endMission(TUM.mission.endCause.FAILED) - -- end + -- When the player dies in single-player, remind them that they can respawn + -- (because no one knows the "respawn" shortcut key in DCS and it's not possible to respawn by + -- changing slots when there's only one) + if not TUM.settings.getValue(TUM.settings.id.MULTIPLAYER) then + if event.id == world.event.S_EVENT_CRASH or event.id == world.event.S_EVENT_EJECTION or event.id == world.event.S_EVENT_PILOT_DEAD then + -- TUM.mission.endMission(TUM.mission.endCause.FAILED) + trigger.action.outText("Your aircraft has been downed.\nPress Right CTRL+Right Shift+Tab (default) to respawn.", 10) + end + end end function TUM.mission.playMissionSummaryRadioMessage(onlyShowIncomplete, delayed)