{"name":"ctrlMapWorldToScreen","title":"ctrlMapWorldToScreen","type":"command","url":"https://community.bistudio.com/wiki/ctrlMapWorldToScreen","revid":379409,"updated":"2026-10-31T00:02:41Z","groups":["GUI Control - Map"],"status":"ok","games":{"arma1":"1.05","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma1 1.05","arma3_since":"0.50","description":"Converts world coordinates into map screen coordinates. This command is identical to posWorldToScreen.","syntaxes":[{"syntax":"control ctrlMapWorldToScreen position","params":[{"name":"control","type":"Control","description":"map control","type_expr":"Control","text":"control : Control - map control"},{"name":"position","type":"Position2D or Position3D","description":"world position","type_expr":"Position2D | Position3D","text":"position : Position2D or Position3D - world position"}],"returns":{"type":"Position2D","type_expr":"Position2D","description":"screen coordinates in format [x, y]"},"form":"binary","left":{"text":"control"},"right":{"text":"position"}}],"examples":[{"code":["_screenCoord = _control ctrlMapWorldToScreen _worldCoord;"]},{"code":["_screenCoord = _control ctrlMapWorldToScreen position player;"]}],"see_also":["ctrlMapScreenToWorld","posWorldToScreen"],"notes":[{"user":".kju","date":"2010-06-16T00:00:00Z","text":"This command returns a 2D array with the position on the active map display. Say the return [0.5.0.5] would mean that your input 3d world position, like [500,1000], is currently at the center of the active map display.\nIn other words you can make the actual world position (of an object for example), relative to your active map display."}]}