Jump to content
Sign in to follow this  
helling3r

How to tint unit textures? (Winter camo with scripting)

Recommended Posts

Hello,

i want to create winter camo for a winter mission without to force the player to use mods.

Is there a way to load such a camo for units? Or can i somehow "tint" the already present textures?

I already played with setObjectTexture and "hiddenSelectionsTextures" but i was not able to create any effect (probably i do something wrong).

player setObjectTexture [1, (getArray(configFile >> "CfgVehicles" >> (typeOf player) >> "hiddenSelectionsTextures")) select 1];
//^^ and friends like these. Nothing worked so far :( 

The units i use are default USMC and Chernarus insurgents. Classes e.g.:

- GUE_Commander

- GUE_Soldier_CO

- GUE_Soldier_Medic

- USMC_Soldier_SL

- USMC_Soldier

- USMC_Soldier_Medic

- etc

Would be glad if there would be some solution that depend entirely on script and content thats already there (so no custom textures .paa files if possible please).

Thank you for pointing me in the right direction!

Share this post


Link to post
Share on other sites

To check you could always print out the count of your getArray command.

Share this post


Link to post
Share on other sites

Well, that sounds bad.

Is there any other way to create winter camo without using mods?

Share this post


Link to post
Share on other sites

Shame. Would be cool to have a setUnitTexture or something. We can dream though. :p

Share this post


Link to post
Share on other sites

I wondered this too. Would save a lot of file size in missions when you could just tint a texture to a certain color instead of having to create a new paa.

Share this post


Link to post
Share on other sites

Well, even if there were no "official" hidden textures, atleast one could do similar to settextureObject. Even if it was required to provide the .paas, imagine how many cool skins would get released over time.

Share this post


Link to post
Share on other sites

Some units do have hiddenselections, though. I believe the Takistani insurgents do, for example.

Share this post


Link to post
Share on other sites

Is there some sort of list i can query? Or how can i check hiddenSelections without having to do it via the editor?

Share this post


Link to post
Share on other sites

There are no hidden selections that I know of. Though you can make your own skins for vehicles. IE; Look at rubber kites WF. He's reskinned some vehicles on there, but he had to provide the .paas, as I don't think they were any hidden selection since the .paas reside in the mission folder.

Share this post


Link to post
Share on other sites

There's some misunderstanding here. hiddenselections are not "hidden" textures. They're just some selections, on some models, for which you can assign another texture using setObjectTexture.

There is quite a number of vehicles and units that do have hiddenselections.

Share this post


Link to post
Share on other sites

Ahh okay. I only thought otherwise, because rubberkite reskined some vehicles in RE, using setobjecttexture, but he used his own .paas. I didn't realize there were "official" hidden skins available.

Share this post


Link to post
Share on other sites

How do i do that? How can i know on which units i have to call that thing to swap the camo?

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  

×