Jump to content
Crazy_Man

Get an array of units's classnames with configclass

Recommended Posts

Hello,

 

I need help in creating an array of all zombies (Ryan's Zombies and demons mod) that exist on one side.

 

For the moment i have this :

zombies = "getNumber (_x >> 'side') == 0" configClasses (configFile >> "CfgVehicles");

But I miss one condition (maybe a getText) to have all the zombies' class. Like that :

getText (_x >> '????') == ????

Can anyone help me?

Share this post


Link to post
Share on other sites

This returns all units class names of the subtype RyanZombieC_man_1:

 

_zombies = "getNumber (_x >> 'scope') >= 2 AND getNumber (_x >> 'side') == 0 AND configname _x isKindOf 'RyanZombieC_man_1'" configClasses (configFile >> "CfgVehicles") apply {configName _x};

 

 

Returns 256 zombies:

["RyanZombieC_man_1Opfor","RyanZombieC_man_polo_1_FOpfor","RyanZombieC_man_polo_2_FOpfor","RyanZombieC_man_polo_4_FOpfor","RyanZombieC_man_polo_5_FOpfor","RyanZombieC_man_polo_6_FOpfor","RyanZombieC_man_p_fugitive_FOpfor","RyanZombieC_man_w_worker_FOpfor","RyanZombieC_scientist_FOpfor","RyanZombieC_man_hunter_1_FOpfor","RyanZombieC_man_pilot_FOpfor","RyanZombieC_journalist_FOpfor","RyanZombieC_OrestesOpfor","RyanZombieC_NikosOpfor","RyanZombie15Opfor","RyanZombie16Opfor","RyanZombie17Opfor","RyanZombie18Opfor","RyanZombie19Opfor","RyanZombie20Opfor","RyanZombie21Opfor","RyanZombie22Opfor","RyanZombie23Opfor","RyanZombie24Opfor","RyanZombie25Opfor","RyanZombie26Opfor","RyanZombie27Opfor","RyanZombie28Opfor","RyanZombie29Opfor","RyanZombie30Opfor","RyanZombie31Opfor","RyanZombie32Opfor","RyanZombiePlayer1Opfor","RyanZombiePlayer2Opfor","RyanZombiePlayer3Opfor","RyanZombiePlayer4Opfor","RyanZombiePlayer5Opfor","RyanZombiePlayer6Opfor","RyanZombiePlayer7Opfor","RyanZombiePlayer8Opfor","RyanZombiePlayer9Opfor","RyanZombiePlayer10Opfor","RyanZombiePlayer11Opfor","RyanZombiePlayer12Opfor","RyanZombiePlayer13Opfor","RyanZombiePlayer14Opfor","RyanZombiePlayer15Opfor","RyanZombiePlayer16Opfor","RyanZombiePlayer17Opfor","RyanZombiePlayer18Opfor","RyanZombiePlayer19Opfor","RyanZombiePlayer20Opfor","RyanZombiePlayer21Opfor","RyanZombiePlayer22Opfor","RyanZombiePlayer23Opfor","RyanZombiePlayer24Opfor","RyanZombiePlayer25Opfor","RyanZombiePlayer26Opfor","RyanZombiePlayer27Opfor","RyanZombiePlayer28Opfor","RyanZombiePlayer29Opfor","RyanZombiePlayer30Opfor","RyanZombiePlayer31Opfor","RyanZombiePlayer32Opfor","RyanZombieC_man_1slowOpfor","RyanZombieC_man_polo_1_FslowOpfor","RyanZombieC_man_polo_2_FslowOpfor","RyanZombieC_man_polo_4_FslowOpfor","RyanZombieC_man_polo_5_FslowOpfor","RyanZombieC_man_polo_6_FslowOpfor","RyanZombieC_man_p_fugitive_FslowOpfor","RyanZombieC_man_w_worker_FslowOpfor","RyanZombieC_scientist_FslowOpfor","RyanZombieC_man_hunter_1_FslowOpfor","RyanZombieC_man_pilot_FslowOpfor","RyanZombieC_journalist_FslowOpfor","RyanZombieC_OrestesslowOpfor","RyanZombieC_NikosslowOpfor","RyanZombie15slowOpfor","RyanZombie16slowOpfor","RyanZombie17slowOpfor","RyanZombie18slowOpfor","RyanZombie19slowOpfor","RyanZombie20slowOpfor","RyanZombie21slowOpfor","RyanZombie22slowOpfor","RyanZombie23slowOpfor","RyanZombie24slowOpfor","RyanZombie25slowOpfor","RyanZombie26slowOpfor","RyanZombie27slowOpfor","RyanZombie28slowOpfor","RyanZombie29slowOpfor","RyanZombie30slowOpfor","RyanZombie31slowOpfor","RyanZombie32slowOpfor","RyanZombieC_man_1mediumOpfor","RyanZombieC_man_polo_1_FmediumOpfor","RyanZombieC_man_polo_2_FmediumOpfor","RyanZombieC_man_polo_4_FmediumOpfor","RyanZombieC_man_polo_5_FmediumOpfor","RyanZombieC_man_polo_6_FmediumOpfor","RyanZombieC_man_p_fugitive_FmediumOpfor","RyanZombieC_man_w_worker_FmediumOpfor","RyanZombieC_scientist_FmediumOpfor","RyanZombieC_man_hunter_1_FmediumOpfor","RyanZombieC_man_pilot_FmediumOpfor","RyanZombieC_journalist_FmediumOpfor","RyanZombieC_OrestesmediumOpfor","RyanZombieC_NikosmediumOpfor","RyanZombie15mediumOpfor","RyanZombie16mediumOpfor","RyanZombie17mediumOpfor","RyanZombie18mediumOpfor","RyanZombie19mediumOpfor","RyanZombie20mediumOpfor","RyanZombie21mediumOpfor","RyanZombie22mediumOpfor","RyanZombie23mediumOpfor","RyanZombie24mediumOpfor","RyanZombie25mediumOpfor","RyanZombie26mediumOpfor","RyanZombie27mediumOpfor","RyanZombie28mediumOpfor","RyanZombie29mediumOpfor","RyanZombie30mediumOpfor","RyanZombie31mediumOpfor","RyanZombie32mediumOpfor","RyanZombieC_man_1walkerOpfor","RyanZombieC_man_polo_1_FwalkerOpfor","RyanZombieC_man_polo_2_FwalkerOpfor","RyanZombieC_man_polo_4_FwalkerOpfor","RyanZombieC_man_polo_5_FwalkerOpfor","RyanZombieC_man_polo_6_FwalkerOpfor","RyanZombieC_man_p_fugitive_FwalkerOpfor","RyanZombieC_man_w_worker_FwalkerOpfor","RyanZombieC_scientist_FwalkerOpfor","RyanZombieC_man_hunter_1_FwalkerOpfor","RyanZombieC_man_pilot_FwalkerOpfor","RyanZombieC_journalist_FwalkerOpfor","RyanZombieC_OresteswalkerOpfor","RyanZombieC_NikoswalkerOpfor","RyanZombie15walkerOpfor","RyanZombie16walkerOpfor","RyanZombie17walkerOpfor","RyanZombie18walkerOpfor","RyanZombie19walkerOpfor","RyanZombie20walkerOpfor","RyanZombie21walkerOpfor","RyanZombie22walkerOpfor","RyanZombie23walkerOpfor","RyanZombie24walkerOpfor","RyanZombie25walkerOpfor","RyanZombie26walkerOpfor","RyanZombie27walkerOpfor","RyanZombie28walkerOpfor","RyanZombie29walkerOpfor","RyanZombie30walkerOpfor","RyanZombie31walkerOpfor","RyanZombie32walkerOpfor","RyanZombieboss1Opfor","RyanZombieboss2Opfor","RyanZombieboss3Opfor","RyanZombieboss4Opfor","RyanZombieboss5Opfor","RyanZombieboss6Opfor","RyanZombieboss7Opfor","RyanZombieboss8Opfor","RyanZombieboss9Opfor","RyanZombieboss10Opfor","RyanZombieboss11Opfor","RyanZombieboss12Opfor","RyanZombieboss13Opfor","RyanZombieboss14Opfor","RyanZombieboss15Opfor","RyanZombieboss16Opfor","RyanZombieboss17Opfor","RyanZombieboss18Opfor","RyanZombieboss19Opfor","RyanZombieboss20Opfor","RyanZombieboss21Opfor","RyanZombieboss22Opfor","RyanZombieboss23Opfor","RyanZombieboss24Opfor","RyanZombieboss25Opfor","RyanZombieboss26Opfor","RyanZombieboss27Opfor","RyanZombieboss28Opfor","RyanZombieboss29Opfor","RyanZombieboss30Opfor","RyanZombieboss31Opfor","RyanZombieboss32Opfor","RyanZombieSpider1Opfor","RyanZombieSpider2Opfor","RyanZombieSpider3Opfor","RyanZombieSpider4Opfor","RyanZombieSpider5Opfor","RyanZombieSpider6Opfor","RyanZombieSpider7Opfor","RyanZombieSpider8Opfor","RyanZombieSpider9Opfor","RyanZombieSpider10Opfor","RyanZombieSpider11Opfor","RyanZombieSpider12Opfor","RyanZombieSpider13Opfor","RyanZombieSpider14Opfor","RyanZombieSpider15Opfor","RyanZombieSpider16Opfor","RyanZombieSpider17Opfor","RyanZombieSpider18Opfor","RyanZombieSpider19Opfor","RyanZombieSpider20Opfor","RyanZombieSpider21Opfor","RyanZombieSpider22Opfor","RyanZombieSpider23Opfor","RyanZombieSpider24Opfor","RyanZombieSpider25Opfor","RyanZombieSpider26Opfor","RyanZombieSpider27Opfor","RyanZombieSpider28Opfor","RyanZombieSpider29Opfor","RyanZombieSpider30Opfor","RyanZombieSpider31Opfor","RyanZombieSpider32Opfor","RyanZombieCrawler1Opfor","RyanZombieCrawler2Opfor","RyanZombieCrawler3Opfor","RyanZombieCrawler4Opfor","RyanZombieCrawler5Opfor","RyanZombieCrawler6Opfor","RyanZombieCrawler7Opfor","RyanZombieCrawler8Opfor","RyanZombieCrawler9Opfor","RyanZombieCrawler10Opfor","RyanZombieCrawler11Opfor","RyanZombieCrawler12Opfor","RyanZombieCrawler13Opfor","RyanZombieCrawler14Opfor","RyanZombieCrawler15Opfor","RyanZombieCrawler16Opfor","RyanZombieCrawler17Opfor","RyanZombieCrawler18Opfor","RyanZombieCrawler19Opfor","RyanZombieCrawler20Opfor","RyanZombieCrawler21Opfor","RyanZombieCrawler22Opfor","RyanZombieCrawler23Opfor","RyanZombieCrawler24Opfor","RyanZombieCrawler25Opfor","RyanZombieCrawler26Opfor","RyanZombieCrawler27Opfor","RyanZombieCrawler28Opfor","RyanZombieCrawler29Opfor","RyanZombieCrawler30Opfor","RyanZombieCrawler31Opfor","RyanZombieCrawler32Opfor"]

 

Cheers

  • Thanks 1

Share this post


Link to post
Share on other sites

It's exactly what I needed, Thank you very much Grumpy Old Man!

  • Like 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

×