{"name":"posWorldToScreen","operator":null,"title":"posWorldToScreen","type":"command","url":"https://community.bistudio.com/wiki/posWorldToScreen","revid":377539,"updated":"2026-01-02T06:54:25Z","groups":["GUI Control - Map","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 world coordinates into map screen coordinates. This command is identical to ctrlMapWorldToScreen.","syntaxes":[{"syntax":"map posWorldToScreen position","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":"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":"map","types":["Control"]},"right":{"text":"position","types":["Position2D","Position3D"]}}],"examples":[{"text":"```sqf\n_screenCoord = _control posWorldToScreen _worldCoord;\n```","code":["_screenCoord = _control posWorldToScreen _worldCoord;"]},{"text":"```sqf\n_screenCoord = _control posWorldToScreen position player;\n```","code":["_screenCoord = _control posWorldToScreen position player;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["posScreenToWorld","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: GUI Control - Map","Command Group: Positions","Introduced with Armed Assault version 1.00","Scripting Commands","Take On Helicopters: Scripting Commands"]}