{"name":"setMarkerType","title":"setMarkerType","type":"command","url":"https://community.bistudio.com/wiki/setMarkerType","revid":370037,"updated":"2024-10-28T20:28:34Z","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":"global"},"description":"Sets marker type. Marker type is a class name from CfgMarkers.\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 setMarkerType type","params":[{"name":"markerName","type":"String","type_expr":"String"},{"name":"type","type":"String","description":"see CfgMarkers","type_expr":"String"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"markerName"},"right":{"text":"type"}}],"examples":[{"code":["\"MarkerOne\" setMarkerType \"Warning\";"]}],"see_also":["CfgMarkers","setMarkerDrawPriority","setMarkerTypeLocal","markerType","setMarkerAlphaLocal","setMarkerBrush","setMarkerColor","setMarkerDir","setMarkerPos","setMarkerShape","setMarkerSize","setMarkerText","createMarker"]}