Avoidable 10 Posted November 24, 2009 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
Uglyboy 10 Posted November 24, 2009 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
Defunkt 431 Posted November 24, 2009 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
Avoidable 10 Posted November 24, 2009 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
soul_assassin 1750 Posted November 24, 2009 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