Jump to content
Sign in to follow this  
Pascal F.

Problems reffering to the vest texture

Recommended Posts

Hello a3 community,

 

DISCLAIMER: I am completely new to A3 scripting, and this is one of the first scripts. (and english is not my main language).

 

Goal of the script: Load a custom texture on the vest if the player has the right rank in his name. (eg Rec,Pvt etc.)

 

Issue I am having: Looks like most of the script is running fine. Though the retexture that I am wanting on the VEST will be displayed on the uniform instead.

 

Script: 

[{
if (vest player == "VEST_CLASSNAME") then {
    player setObjectTextureGlobal [0, format["images\ranks\%1.paa", toLower ((name player) select [0, (name player) find " "])]];
};
}, 60, []] call CBA_fnc_addPerFrameHandler;

Thanks in advance

Share this post


Link to post
Share on other sites

You can't repaint vest via script.

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  

×