{"name":"getMarkerPos","title":"getMarkerPos","type":"command","url":"https://community.bistudio.com/wiki/getMarkerPos","revid":377402,"updated":"2026-01-02T06:44:58Z","groups":["Markers"],"status":"ok","games":{"ofp":"1.00","ofpe":"1.00","arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"ofp 1.00","arma3_since":"0.50","locality":{"effect":"local"},"description":"Returns marker position.","syntaxes":[{"syntax":"getMarkerPos markerName","params":[{"name":"markerName","type":"String","type_expr":"String"}],"returns":{"type":"PositionAGL","type_expr":"PositionAGL","description":"format [x,y,0]"},"form":"unary","right":{"text":"markerName"}},{"syntax":"getMarkerPos [markerName, preserveElevation]","since":"arma3 1.94","params":[{"name":"markerName","type":"String","type_expr":"String"},{"name":"preserveElevation","type":"Boolean","optional":true,"default":"false","type_expr":"Boolean","text":"preserveElevation: Boolean - (Optional, default false)"}],"returns":{"type":"PositionAGL","type_expr":"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","right":{"text":"[markerName, preserveElevation]"}}],"examples":[{"code":["_mPos1 = getMarkerPos \"markerOne\";"]},{"code":["_mPos2 = getMarkerPos [\"markerTwo\", true];"]}],"aliases":["markerPos"],"see_also":["setMarkerPos","setMarkerPosLocal"]}