Jump to content
Sign in to follow this  
roguetrooper

Removing colour set with setObjectTexture?

Recommended Posts

_man setObjectTexture [1,'#(argb,8,8,3)color(1,0,0,1)'];

gives the unit a red vest (if applicable to that unit).

Is it possible to remove the colour that has been defined with setobjecttexture and return to the default (camo) colour?

Share this post


Link to post
Share on other sites

Might need to reassign the original texture?

_objectname setobjecttexture [1,"\pboname\texture2.paa"] 

If known, that is. Or just set it's alpha to 0 to make it a sweet black. :)

Share this post


Link to post
Share on other sites

Searched and googled but haven't found: is there anywhere a list of pbo-names?

Share this post


Link to post
Share on other sites

I haven't tested this but it should work.

_man setObjectTexture [1, (getArray(configFile >> "CfgVehicles" >> typeOf _man >> "hiddenSelectionsTextures")) select 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
Sign in to follow this  

×