Jump to content
Sign in to follow this  
Ilias38rus

How to make checking for object in class?

Recommended Posts

For example:

if (/*cless of object A3_Characters_F_Civil;*/) then {};

or

{} for each /*A3_Characters_F_Civil;*/

Share this post


Link to post
Share on other sites

Put this before the loop:

_types = getArray (configFile >> "CfgPatches" >> "A3_Characters_F_Civil" >> "units");

And this inside the loop:

typeOf _x in _types

Share this post


Link to post
Share on other sites

 

Put this before the loop:

_types = getArray (configFile >> "CfgPatches" >> "A3_Characters_F_Civil" >> "units");

And this inside the loop:

typeOf _x in _types

Thank you.

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  

×