{"name":"ctrlMapWorldToScreen","operator":null,"title":"ctrlMapWorldToScreen","type":"command","url":"https://community.bistudio.com/wiki/ctrlMapWorldToScreen","revid":378320,"updated":"2026-04-02T16:18:50Z","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 world coordinates into map screen coordinates. This command is identical to posWorldToScreen.","syntaxes":[{"syntax":"control ctrlMapWorldToScreen position","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":"position","type":"Position2D or Position3D","optional":false,"default":null,"description":"world position","types":["Position2D","Position3D"],"since":null,"text":"position : Position2D or Position3D - world position"}],"returns":{"type":"Position2D","types":["Position2D"],"description":"screen coordinates in format [x, y]","text":"Position2D - screen coordinates in format [x, y]"},"form":"binary","operator":null,"left":{"text":"control","types":["Control"]},"right":{"text":"position","types":["Position2D","Position3D"]}}],"examples":[{"text":"```sqf\n_screenCoord = _control ctrlMapWorldToScreen _worldCoord;\n```","code":["_screenCoord = _control ctrlMapWorldToScreen _worldCoord;"]},{"text":"```sqf\n_screenCoord = _control ctrlMapWorldToScreen position player;\n```","code":["_screenCoord = _control ctrlMapWorldToScreen position player;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["ctrlMapScreenToWorld","posWorldToScreen"],"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"]}