Jump to content
Crazy_Man

Get all class names of armed car

Recommended Posts

Hi! All is in the title.

 

For the moment i have this :

_configs = "getNumber (_x >> 'scope') >= 2 AND configName _x isKindof 'Car' AND gettext (_x >> 'faction') == 'UNSUNG_E'" configClasses (configFile >> "CfgVehicles");

But it miss the condition to check if the car is armed..

Share this post


Link to post
Share on other sites

Not ideal but as far as Unsung is concerned, try:

 

_configs = "getNumber (_x >> 'scope') >= 2 && configName _x isKindof 'Car' && gettext (_x >> 'faction') == 'UNSUNG_E' && count (configName _x call bis_fnc_allTurrets) >1" configClasses (configFile >> "CfgVehicles");

 

Some vehicles doesn't have turret at all (?!?), some others have one for driver.

Perhaps one day the modders will reach some up-to-date standard (like [-1] for driver), but not for today.

 

  • Thanks 1

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

×