{"name":"markerPos","operator":null,"title":"markerPos","type":"command","url":"https://community.bistudio.com/wiki/markerPos","revid":377420,"updated":"2026-01-02T06:45:30Z","groups":["Markers"],"status":"ok","replaced_by":[],"games":[{"game":"ofp","name":"Operation Flashpoint","version":"1.46"},{"game":"ofpe","name":"Operation Flashpoint: Elite","version":"1.00"},{"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":"ofp","name":"Operation Flashpoint","version":"1.46"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns marker position. See also setMarkerPos.","syntaxes":[{"syntax":"markerPos markerName","since":null,"effect":null,"exec":null,"params":[{"name":"markerName","type":"String","optional":false,"default":null,"description":null,"types":["String"],"since":null,"text":"markerName: String"}],"returns":{"type":"PositionAGL","types":["PositionAGL"],"description":"[x, y, 0], z is always 0","text":"PositionAGL - [x, y, **0**], z is always 0"},"form":"unary","operator":null,"left":null,"right":{"text":"markerName","types":["String"]}},{"syntax":"markerPos [markerName, preserveElevation]","since":"arma3 1.94","effect":null,"exec":null,"params":[{"name":"markerName","type":"String","optional":false,"default":null,"description":null,"types":["String"],"since":null,"text":"markerName: String"},{"name":"preserveElevation","type":"Boolean","optional":true,"default":"false","description":null,"types":["Boolean"],"since":null,"text":"preserveElevation: Boolean - (Optional, default false)"}],"returns":{"type":"PositionAGL","types":["PositionAGL"],"description":"if preserveElevation is true or [x, y, 0] if preserveElevation is false","text":"PositionAGL - if *preserveElevation* is true or [x, y, **0**] if *preserveElevation* is false"},"form":"unary","operator":null,"left":null,"right":{"text":"[markerName, preserveElevation]","types":["Array"]}}],"examples":[{"text":"```sqf\n_mPos1 = markerPos \"markerOne\";\n```","code":["_mPos1 = markerPos \"markerOne\";"]},{"text":"```sqf\n_mPos2 = markerPos [\"markerTwo\", true];\n```","code":["_mPos2 = markerPos [\"markerTwo\", true];"]}],"multiplayer":null,"problems":null,"aliases":["getMarkerPos"],"see_also":["setMarkerPos","setMarkerPosLocal"],"notes":[],"categories":[]}