Jump to content
Sign in to follow this  
giallustio

Get markers class

Recommended Posts

If you want to find out what type of marker a marker is in game you can use the markerType command. However, you have to know the marker name so unless you have stored the names of the markers that you want to find types for, the data will be inaccessible.

Share this post


Link to post
Share on other sites

Thank you Loyalguard for your reply but it's not what i need :)

I need to get an array with all markers classes from the cfg or something like that. Is this possible?

Share this post


Link to post
Share on other sites

Added basic support for CfgMarkers and friends to the Six Config Browser:

CfgMarkers

CfgMarkerBrushes

CfgmarkerColors

If anyone's interested I could add full support incl proper list with pictures etc, like is available for Cfgvehicles etc;

http://community.bistudio.com/wiki/ArmA_2_OA:_CfgVehicles

http://community.bistudio.com/wiki/ArmA_2_OA:_CfgWeapons

---------- Post added at 14:43 ---------- Previous post was at 14:35 ----------

You can iterate over the CfgMarkers class to get an array, e.g:

_ar = [];
_config = configFile >> "CfgMarkers";
for "_i" from 0 to (count _config) - 1 do {
 _entry = _config select _i;
 if (isClass _entry) then {
   // TODO: Any conditions, or just add ALL of them?
   _ar set [count _ar, configName _entry];
 };
};

_ar; // Contains CfgMarkers classnames

Share this post


Link to post
Share on other sites

_ar = [];
_config = configFile >> "CfgMarkers";
for "_i" from 0 to (count _config) - 1 do {
 _entry = _config select _i;
 if (isClass _entry) then {
   // TODO: Any conditions, or just add ALL of them?
   _ar set [count _ar, configName _entry];
 };
};

_ar; // Contains CfgMarkers classnames

Thank you a lot Sickboy! :)

Solved!:yay:

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×