{"name":"setMarkerBrush","title":"setMarkerBrush","type":"command","url":"https://community.bistudio.com/wiki/setMarkerBrush","revid":370036,"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":"Selects the fill texture for the marker (\"RECTANGLE\" or \"ELLIPSE\"). Brush is the name of the subclass in `CfgMarkerBrushes`.\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 setMarkerBrush brush","params":[{"name":"markerName","type":"String","type_expr":"String"},{"name":"brush","type":"String","description":"(case-insensitive) can be one of:\n\n- \"Solid\"\n- Arma 3 v0.50 \"SolidFull\"\n- \"Horizontal\"\n- \"Vertical\"\n- \"Grid\"\n- \"FDiagonal\"\n- \"BDiagonal\"\n- \"DiagGrid\"\n- \"Cross\"\n- Arma 2 v1.00 \"Border\"\n- Arma 2 v1.00 \"SolidBorder\"","type_expr":"String"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"markerName"},"right":{"text":"brush"}}],"examples":[{"code":["\"Marker1\" setMarkerBrush \"DIAGGRID\";"]}],"see_also":["setMarkerAlpha","setMarkerAlphaLocal","setMarkerBrushLocal","setMarkerColor","setMarkerColorLocal","setMarkerDir","setMarkerDirLocal","setMarkerPos","setMarkerPosLocal","setMarkerShape","setMarkerShapeLocal","setMarkerSize","setMarkerSizeLocal","setMarkerText","setMarkerTextLocal","setMarkerType","setMarkerTypeLocal"]}