{"name":"setMarkerSize","title":"setMarkerSize","type":"command","url":"https://community.bistudio.com/wiki/setMarkerSize","revid":370044,"updated":"2024-10-28T20:28:37Z","groups":["Markers"],"status":"ok","games":{"ofp":"1.21","ofpe":"1.00","arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"ofp 1.21","arma3_since":"0.50","locality":{"effect":"global"},"description":"Sets the marker's size.\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 setMarkerSize [a-axis, b-axis]","params":[{"name":"markerName","type":"String","type_expr":"String"},{"name":"a-axis","type":"Number","description":"1/2 width of marker","type_expr":"Number"},{"name":"b-axis","type":"Number","description":"1/2 height of marker","type_expr":"Number"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"markerName"},"right":{"text":"[a-axis, b-axis]"}}],"examples":[{"code":["\"MarkerOne\" setMarkerSize [100, 200];"]}],"see_also":["setMarkerSizeLocal","getMarkerSize","markerSize"]}