{"name":"getMarkerPos","operator":null,"title":"getMarkerPos","type":"command","url":"https://community.bistudio.com/wiki/getMarkerPos","revid":377402,"updated":"2026-01-02T06:44:58Z","groups":["Markers"],"status":"ok","replaced_by":[],"games":[{"game":"ofp","name":"Operation Flashpoint","version":"1.00"},{"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.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":"local","server_exec":false},"exec":null,"description":"Returns marker position.","syntaxes":[{"syntax":"getMarkerPos 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":"format [x,y,0]","text":"PositionAGL - format [x,y,0]"},"form":"unary","operator":null,"left":null,"right":{"text":"markerName","types":["String"]}},{"syntax":"getMarkerPos [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 = getMarkerPos \"markerOne\";\n```","code":["_mPos1 = getMarkerPos \"markerOne\";"]},{"text":"```sqf\n_mPos2 = getMarkerPos [\"markerTwo\", true];\n```","code":["_mPos2 = getMarkerPos [\"markerTwo\", true];"]}],"multiplayer":null,"problems":null,"aliases":["markerPos"],"see_also":["setMarkerPos","setMarkerPosLocal"],"notes":[],"categories":["ArmA: Armed Assault: Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Markers","Introduced with Operation Flashpoint version 1.00","Operation Flashpoint: Elite: Scripting Commands","Operation Flashpoint: New Scripting Commands","Operation Flashpoint: Scripting Commands","Scripting Commands","Scripting Commands: Local Effect","Take On Helicopters: Scripting Commands"]}