{"name":"setDebriefingText","operator":null,"title":"setDebriefingText","type":"command","url":"https://community.bistudio.com/wiki/setDebriefingText","revid":363195,"updated":"2024-03-25T16:31:09Z","groups":["Briefing"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma3","name":"Arma 3","version":"0.50"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"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]","since":null,"effect":null,"exec":null,"params":[{"name":"endType","type":"String","optional":false,"default":null,"description":"engine type","types":["String"],"since":null,"text":"endType: String - engine type"},{"name":"title","type":"String","optional":false,"default":null,"description":"title text on the debriefing screen","types":["String"],"since":null,"text":"title: String - title text on the debriefing screen"},{"name":"description","type":"String","optional":false,"default":null,"description":"description text on the debriefing screen","types":["String"],"since":null,"text":"description: String - description text on the debriefing screen"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"endType","types":["String"]},"right":{"text":"[title, description]","types":["Array"]}},{"syntax":"endType setDebriefingText [title, description, subtitle, picture, background]","since":"arma3 2.06","effect":null,"exec":null,"params":[{"name":"endType","type":"String","optional":false,"default":null,"description":"any name","types":["String"],"since":null,"text":"endType: String - any name"},{"name":"title","type":"String","optional":false,"default":null,"description":"title text on the debriefing screen","types":["String"],"since":null,"text":"title: String - title text on the debriefing screen"},{"name":"description","type":"String","optional":false,"default":null,"description":"description text on the debriefing screen","types":["String"],"since":null,"text":"description: String - description text on the debriefing screen"},{"name":"subtitle","type":"String","optional":false,"default":null,"description":"subtitle text on the debriefing screen (**must** be defined in order to trigger this syntax of the command)","types":["String"],"since":null,"text":"subtitle: String - subtitle text on the debriefing screen (**must** be defined in order to trigger this syntax of the command)"},{"name":"picture","type":"String","optional":true,"default":null,"description":"title picture","types":["String"],"since":null,"text":"picture: String - (Optional) title picture"},{"name":"background","type":"String","optional":true,"default":null,"description":"background picture","types":["String"],"since":null,"text":"background: String - (Optional) background picture"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"endType","types":["String"]},"right":{"text":"[title, description, subtitle, picture, background]","types":["Array"]}}],"examples":[{"text":"```sqf\n_currentObjective = (taskDescription currentTask player) select 2;\n\"endDeath\" setDebriefingText [\"You Lose\", \"All of your men were killed while assaulting the \" + _currentObjective];\n```","code":["_currentObjective = (taskDescription currentTask player) select 2;\n\"endDeath\" setDebriefingText [\"You Lose\", \"All of your men were killed while assaulting the \" + _currentObjective];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["getDebriefingText","disableDebriefingStats","enableDebriefingStats","endMission","failMission","missionEnd"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Briefing","Introduced with Arma 3 version 0.50","Scripting Commands"]}