Jump to content
Sign in to follow this  
Gemberkoekje

Referencing files in config.cpp

Recommended Posts

Hi all,

 

I'm a new modder, and I've been working on a script for a face.

 

This is part of my config.cpp

class CfgFaces
{
	class Default;
	class Man_A3: Default
	{
		class Default;
		class MyPerson : Default
		{
			identityTypes[] = {"MyPerson"};
			displayname = "MyPerson";
			material = "\Skin.rvmat";
		};
    };
};

Now, the problem I'm having is with Skin.rvmat. I'm adding it to my PBO, I can see it in my PBO if I open it with the PBO manager, but in the game it isn't showing the correct material.
How do I properly reference a file from config.cpp which is in my PBO?

Share this post


Link to post
Share on other sites

You need to have the pbo name in the path (without the .pbo part)

e.g 

			material = "PBO_NAME_WITHOUT_PBO_EXTENSION\skin.rvmat";

 

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  

×