Blitzen88 16 Posted April 21, 2019 (edited) Basically title but.... Is there any way to automatically setmarkeralpha 0 for all markers that start with certain letters? For instance, setmarkeralpha 0 for all markers that start with "Obj_" ? Thanks! Edited April 21, 2019 by Blitzen88 Grammer Share this post Link to post Share on other sites
Larrow 2779 Posted April 21, 2019 _searchString = "Obj_"; { _x params[ "_markerName" ]; if ( _markerName find _searchString isEqualTo 0 ) then { _markerName setMarkerAlpha 0; }; }forEach allMapMarkers; Keep in mind find is case sensitive, so you might want to use toLower or toUpper on both the strings. 1 Share this post Link to post Share on other sites
Blitzen88 16 Posted April 21, 2019 8 hours ago, Larrow said: _searchString = "Obj_"; { _x params[ "_markerName" ]; if ( _markerName find _searchString isEqualTo 0 ) then { _markerName setMarkerAlpha 0; }; }forEach allMapMarkers; Keep in mind find is case sensitive, so you might want to use toLower or toUpper on both the strings. This seems to work really well. Thank you! Share this post Link to post Share on other sites