{"name":"forceMap","operator":null,"title":"forceMap","type":"command","url":"https://community.bistudio.com/wiki/forceMap","revid":363365,"updated":"2024-03-27T23:45:43Z","groups":["Map","Interaction"],"status":"ok","replaced_by":[],"games":[{"game":"ofp","name":"Operation Flashpoint","version":"1.27"},{"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.27"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":"local","server_exec":false},"exec":null,"description":"Opens non-interactive main map in background that overrides user screen. To force open interactive map use openMap command.\n\n> [!WARNING]\n> When the map is forced open with this command, the user is still able to fire but cannot see the world, just the map.\n> The map cannot be closed manually and the user can get stuck requiring a game restart. Make sure you provide scripted mechanics to de-force the map at a later stage.","syntaxes":[{"syntax":"forceMap show","since":null,"effect":null,"exec":null,"params":[{"name":"show","type":"Boolean","optional":false,"default":null,"description":"true to force, false to go back to normal map behaviour","types":["Boolean"],"since":null,"text":"show: Boolean - true to force, false to go back to normal map behaviour"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"unary","operator":null,"left":null,"right":{"text":"show","types":["Boolean"]}}],"examples":[{"text":"```sqf\nforceMap true;\n```","code":["forceMap true;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["forcedMap","showMap","shownMap","openMap","visibleMap"],"notes":[{"user":"Ceeeb","date":"2007-02-02T05:28:00Z","text":"In **OFP v1.96**, the mapAnim series of commands, together with forceMap can only be used in the intro and mission, as it is not possible to access the map from the outro.\n*(not checked, sourced from an old copy of the OFPEC comref)*"},{"user":"Manny","date":"2007-05-05T15:43:00Z","text":"Manually opening the map afterwards won't close the map.\nActually it will open the \"real\" map on top of the forced map, and closing the (top) map with the <kbd>M</kbd> key again will still show the forcefully opened map."}],"categories":["ArmA: Armed Assault: Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Interaction","Command Group: Map","Introduced with Operation Flashpoint version 1.27","Operation Flashpoint: Elite: Scripting Commands","Operation Flashpoint: New Scripting Commands","Operation Flashpoint: Scripting Commands","Scripting Commands","Scripting Commands: Local Effect","Take On Helicopters: Scripting Commands"]}