{"name":"setMarkerDir","title":"setMarkerDir","type":"command","url":"https://community.bistudio.com/wiki/setMarkerDir","revid":370038,"updated":"2024-10-28T20:28:34Z","groups":["Markers"],"status":"ok","games":{"ofpe":"1.00","arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"ofpe 1.00","arma3_since":"0.50","locality":{"effect":"global"},"description":"Sets the orientation of the marker. Angle is in degrees.\n\n> [!NOTE]\n> **Multiplayer optimisation:** Global marker commands always broadcast the *entire* marker state over the network.\n> As such, the number of network messages exchanged when creating or editing a marker can be reduced by performing all but the last operation using local marker commands, then using a global marker command for the last change (and subsequent global broadcast of all changes applied to the marker).","syntaxes":[{"syntax":"markerName setMarkerDir angle","params":[{"name":"markerName","type":"String","type_expr":"String"},{"name":"angle","type":"Number","type_expr":"Number"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"markerName"},"right":{"text":"angle"}}],"examples":[{"code":["\"Marker1\" setMarkerDir 90;"]}],"see_also":["markerDir","setMarkerBrush","createMarker","setMarkerColor","setMarkerPos","setMarkerShape","setMarkerSize","setMarkerText","setMarkerType","setMarkerAlpha"]}