{"name":"setDebriefingText","title":"setDebriefingText","type":"command","url":"https://community.bistudio.com/wiki/setDebriefingText","revid":363195,"updated":"2024-03-25T16:31:09Z","groups":["Briefing"],"status":"ok","games":{"arma3":"0.50"},"since":"arma3 0.50","arma3_since":"0.50","description":"Sets debriefing title, text, subtitle, picture and background for a mission ending.\nThe end type could be the engine-defined (\"CONTINUE\", \"KILLED\", \"LOSER\", \"END1\", \"END2\", \"END3\", \"END4\", \"END5\", \"END6\"), config-defined (see CfgDebriefing) or, with an alternative syntax of this command, any String.\nGiven texts will be used to replace the corresponding texts on the debriefing screen.\n\n> [!IMPORTANT]\n> In order to benefit from alternative syntax functionality, there will have to be at least **three** arguments passed to the command; **two** arguments will trigger the old behaviour.","syntaxes":[{"syntax":"endType setDebriefingText [title, description]","params":[{"name":"endType","type":"String","description":"engine type","type_expr":"String"},{"name":"title","type":"String","description":"title text on the debriefing screen","type_expr":"String"},{"name":"description","type":"String","description":"description text on the debriefing screen","type_expr":"String"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"endType"},"right":{"text":"[title, description]"}},{"syntax":"endType setDebriefingText [title, description, subtitle, picture, background]","since":"arma3 2.06","params":[{"name":"endType","type":"String","description":"any name","type_expr":"String"},{"name":"title","type":"String","description":"title text on the debriefing screen","type_expr":"String"},{"name":"description","type":"String","description":"description text on the debriefing screen","type_expr":"String"},{"name":"subtitle","type":"String","description":"subtitle text on the debriefing screen (**must** be defined in order to trigger this syntax of the command)","type_expr":"String"},{"name":"picture","type":"String","optional":true,"description":"title picture","type_expr":"String","text":"picture: String - (Optional) title picture"},{"name":"background","type":"String","optional":true,"description":"background picture","type_expr":"String","text":"background: String - (Optional) background picture"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"endType"},"right":{"text":"[title, description, subtitle, picture, background]"}}],"examples":[{"code":["_currentObjective = (taskDescription currentTask player) select 2;\n\"endDeath\" setDebriefingText [\"You Lose\", \"All of your men were killed while assaulting the \" + _currentObjective];"]}],"see_also":["getDebriefingText","disableDebriefingStats","enableDebriefingStats","endMission","failMission","missionEnd"]}