Jump to content
Sign in to follow this  
AdirB

Call a texture from a PBO file

Recommended Posts

Hello, 

I have a mission template, and I wondering if it's possible to call a texture file from a PBO file with "SetObjectTexture" command.

 

Thanks :)

Share this post


Link to post
Share on other sites

The first example on the wiki indicates that you can do this

_objectname setObjectTexture [0, "\pboname\texture.paa"];

Share this post


Link to post
Share on other sites

 

The first example on the wiki indicates that you can do this

_objectname setObjectTexture [0, "\pboname\texture.paa"];

Thank you for the answer,

 

Even if the PBO is in a mod-pack in the PWS?

Share this post


Link to post
Share on other sites

Thank you for the answer,

 

Even if the PBO is in a mod-pack in the PWS?

As long as you can reliably access the path to the pbo, it shouldn't be an issue.

Share this post


Link to post
Share on other sites

the thing is that i want to texture a vehicle but i don't want the mission file weight much for loading time..

so i planning to put the texture file in a pbo and publish it and to call from the pbo the texture to my custom script? (which sits on my mission pbo)

Share this post


Link to post
Share on other sites

the thing is that i want to texture a vehicle but i don't want the mission file weight much for loading time..

so i planning to put the texture file in a pbo and publish it and to call from the pbo the texture to my custom script? (which sits on my mission pbo)

it is possible.

 

just make folder and put in the config.cpp: 

class CfgPatches
{
	class TAG_textures
	{
		units[] = {};
		weapons[] = {};
		requiredVersion = 0.1;
		requiredAddons[] = {"A3_Characters_F_BLUFOR"};
	};
};

Place the Textures.paa in the Folder and pack the Folder to a Pbo(Addon Builder/Pbo Project)

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  

×