{"name":"posScreenToWorld","operator":null,"title":"posScreenToWorld","type":"command","url":"https://community.bistudio.com/wiki/posScreenToWorld","revid":377564,"updated":"2026-01-02T06:55:27Z","groups":["Positions"],"status":"ok","replaced_by":[],"games":[{"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":"arma1","name":"Armed Assault","version":"1.00"},"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 ctrlMapScreenToWorld, this command returns world position is format [x, y, 0], otherwise it is identical to it.","syntaxes":[{"syntax":"map posScreenToWorld [x, y]","since":null,"effect":null,"exec":null,"params":[{"name":"map","type":"Control","optional":false,"default":null,"description":"map control","types":["Control"],"since":null,"text":"map: 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":"Position3D","types":["Position3D"],"description":"world position in format [x,y,0]","text":"Position3D - world position in format [x,y,0]"},"form":"binary","operator":null,"left":{"text":"map","types":["Control"]},"right":{"text":"[x, y]","types":["Array"]}}],"examples":[{"text":"```sqf\n_worldCoord = _control posScreenToWorld _ScreenCoord;\n```","code":["_worldCoord = _control posScreenToWorld _ScreenCoord;"]},{"text":"```sqf\n_worldCoord = _control posScreenToWorld [_x, _y];\n```","code":["_worldCoord = _control posScreenToWorld [_x, _y];"]},{"text":"```sqf\n_worldCoord = _control posScreenToWorld [0.5, 0.5];\n```","code":["_worldCoord = _control posScreenToWorld [0.5, 0.5];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["posWorldToScreen","ctrlMapScreenToWorld","ctrlMapWorldToScreen"],"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: Positions","Introduced with Armed Assault version 1.00","Scripting Commands","Take On Helicopters: Scripting Commands"]}