Jump to content
Kaiden

Texture chance by license

Recommended Posts

Hello ALRPG!

I have a question that I am sure one of you guys can answer.

In my fn_reloadUniforms (Replacement of fn_playerSkins) the config lines for texturing clothes looks like this:

	// SCO cop uniform.
	if (uniform player == "U_B_CombatUniform_mcam" && (FETCH_CONST(life_coplevel) == 13)) then {
		player setObjectTextureGlobal [0, "textures\police\sco19.paa"]; 
	};

If I want the uniforms texture to change by license instead of level, how would I do that?

Share this post


Link to post
Share on other sites

I guess it would be something like this. Note that I haven't tested it.

// SWAT Uniform.
	if (uniform player == "U_B_CombatUniform_mcam" && {license_cop_swat}) then {
		player setObjectTextureGlobal [0, "textures\police\sco19.paa"]; 
	};

 

Share this post


Link to post
Share on other sites

Attempted a script like that and it didn’t work. I’ll try that when I get home.

 

Share this post


Link to post
Share on other sites

@Kaiden 99% sure that it should work for you. Just use the code that I posted before and edited, not the code I'm about to link.

Proof that it works:

Spoiler

 

h7xEWPP.png

With Clothes On:

zHqUlxv.png 

Clothes Off:

XF4q7eQ.png 

 

 

  • Thanks 1

Share this post


Link to post
Share on other sites

If this issue has been resolved, please confirm and reply with the resolution.  This topic will be closed if no reply is given in 72 hours. 

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×