{"name":"ctrlMapScreenToWorld","operator":null,"title":"ctrlMapScreenToWorld","type":"command","url":"https://community.bistudio.com/wiki/ctrlMapScreenToWorld","revid":377831,"updated":"2026-01-03T04:31:43Z","groups":["GUI Control - Map"],"status":"ok","replaced_by":[],"games":[{"game":"arma1","name":"Armed Assault","version":"1.05"},{"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":"arma1","name":"Armed Assault","version":"1.05"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Converts map screen coordinates into world coordinates. Unlike posScreenToWorld, this command returns world position is format [x, y], otherwise it is identical to posScreenToWorld.","syntaxes":[{"syntax":"control ctrlMapScreenToWorld [x, y]","since":null,"effect":null,"exec":null,"params":[{"name":"control","type":"Control","optional":false,"default":null,"description":"map control","types":["Control"],"since":null,"text":"control: Control - map control"},{"name":"x","type":"Number","optional":false,"default":null,"description":"screen X","types":["Number"],"since":null,"text":"x: Number - screen X"},{"name":"y","type":"Number","optional":false,"default":null,"description":"screen Y","types":["Number"],"since":null,"text":"y: Number - screen Y"}],"returns":{"type":"Position2D","types":["Position2D"],"description":"world coordinates","text":"Position2D - world coordinates"},"form":"binary","operator":null,"left":{"text":"control","types":["Control"]},"right":{"text":"[x, y]","types":["Array"]}}],"examples":[{"text":"```sqf\n_worldCoord = _control ctrlMapScreenToWorld _ScreenCoord;\n```","code":["_worldCoord = _control ctrlMapScreenToWorld _ScreenCoord;"]},{"text":"```sqf\n_worldCoord = _control ctrlMapScreenToWorld [_x, _y];\n```","code":["_worldCoord = _control ctrlMapScreenToWorld [_x, _y];"]},{"text":"```sqf\n_worldCoord = findDisplay 12 displayCtrl 51 ctrlMapScreenToWorld [0.5, 0.5];\n```","code":["_worldCoord = findDisplay 12 displayCtrl 51 ctrlMapScreenToWorld [0.5, 0.5];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["ctrlMapWorldToScreen","posScreenToWorld","posWorldToScreen","findDisplay","displayCtrl"],"notes":[],"categories":["ArmA: Armed Assault: New Scripting Commands","ArmA: Armed Assault: Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: GUI Control - Map","Introduced with Armed Assault version 1.05","Scripting Commands","Take On Helicopters: Scripting Commands"]}