{"name":"missionName","operator":null,"title":"missionName","type":"command","url":"https://community.bistudio.com/wiki/missionName","revid":364087,"updated":"2024-05-03T19:33:29Z","groups":["Mission Information"],"status":"ok","replaced_by":[],"games":[{"game":"ofp","name":"Operation Flashpoint","version":"1.80"},{"game":"ofpe","name":"Operation Flashpoint: Elite","version":"1.00"},{"game":"arma1","name":"Armed Assault","version":"1.00"},{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"ofp","name":"Operation Flashpoint","version":"1.80"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Return currently loaded mission file (path to mission.pbo, relative to game exe).","syntaxes":[{"syntax":"missionName","since":null,"effect":null,"exec":null,"params":[],"returns":{"type":"String","types":["String"],"description":null,"text":"String"},"form":"nullary","operator":null,"left":null,"right":null}],"examples":[{"text":"```sqf\nhint format [\"You are playing mission \"\"%1\"\"\", missionName];\n```","code":["hint format [\"You are playing mission \"\"%1\"\"\", missionName];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["missionNameSource","worldName","briefingName","serverName","worldSize"],"notes":[{"user":".kju","date":"2010-08-02T10:19:00Z","text":"Only works in SP and on the MP Host/DS. It returns the mission pboprefix if available, otherwise the pboname. For clients it returns '__cur_mp'."},{"user":"Kenoxite","date":"2014-09-25T08:05:00Z","text":"Prior to Operation Flashpoint v1.96 it returns the mission filename. Since Operation Flashpoint v1.99, it returns the briefing name instead when in multiplayer. The string displayed is that set in the Intel section of the mission editor."},{"user":"NikkoJT","date":"2021-06-12T19:31:00Z","text":"Testing suggests it does now work on clients in the current Arma 3 version."}],"categories":[]}