Jump to content
Sign in to follow this  
Avoidable

2 textures for 1 model

Recommended Posts

Anyone know if it is possible to attach an alternate texture to a model file and have the second texture applied at the execution of a script?

For arguments sake, a standard red car changes to an alternate blue texture when a certain script is kicked in?

I'm completely new to modding, but if this is possible is might work for a mod I'd like to work on.

Infantry have different textures for damage states so I'm guessing it may well be possible.

Share this post


Link to post
Share on other sites

i remember seeing a video where a t72 got it's texture changed with a radio call, so yeah i think it's scriptable, SetObjectTexture perhaps?

Share this post


Link to post
Share on other sites

Yes, SetObjectTexture or by filling the "hiddenSelections" array in the object config but your model needs to have er, well... hiddenSelections configured which IIRC are tri's grouped together by texture map. Many of the default vehicles have these but generally only where the model is re-used between factions.

Share this post


Link to post
Share on other sites

Ok.

Phew, looks like I'm going to have to do some research on the whole process. I was toying with using the default textures greyscaled and lightened up for a FLIR project, with the script switching textures on FLIR activation in the action menu. I'm sure someones thought of this before and theres a reason it hasn't been tried.

It's going to take months since it'll be a pet project but I'll give it a shot.

Thanks guys.

Share this post


Link to post
Share on other sites

Nobody goes this way because instantly changing the texture of every object in the game would probably kill the game.

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  

×