Jump to content
Guest

Is there any way to get an object picture from config?

Recommended Posts

Guest

I need to get the picture of a bunch of objects from it's config file but I can't. For example, if I wanna get the picture of a weapon I  use:

getText(configFile >> "CfgWeapons"  >> "weaponClassname" >> "picture");

But it doesn't work with CfgVehicles:

getText(configFile >> "CfgVehicles"  >> "Land_Sunshade_01_F" >> "picture");

It just return "pictureStaticObject" instead of the picture path. So what can I do now?

 

Share this post


Link to post
Share on other sites

What picture? picture like the preview?

That's called "editorPreview" for CfgVehicles classes.

  • Like 1

Share this post


Link to post
Share on other sites

this works
_lblPicture = getText(configFile >> "cfgVehicles" >> _x >> "picture");

  • 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

×