tallionlp 10 Posted July 7, 2016 (edited) Hey, can i do this? create file CfgClothing.hpp in Rootfolder of the Mission. put in: class CfgClothing { class U_Rangemaster { texture = "\textures\cop\cop_uniform.paa"; displayName = "Police Uniform"; }; }; then in description.ext: #include CfgClothing.hpp will this work? Edited July 7, 2016 by tallionlp Share this post Link to post Share on other sites
dreadpirate 173 Posted July 7, 2016 Hey, can i do this? create file CfgClothing.hpp in Rootfolder of the Mission. put in: class CfgClothing { class U_Rangemaster { texture = "\textures\cop\cop_uniform.paa"; displayName = "Police Uniform"; }; }; then in description.ext: #include CfgClothing.hpp will this work? No. But you can put: this setObjectTextureGlobal [0, "\textures\cop\cop_uniform.paa"]; in the init of your cop unit(s)..... Share this post Link to post Share on other sites
tallionlp 10 Posted July 7, 2016 No. But you can put: this setObjectTextureGlobal [0, "\textures\cop\cop_uniform.paa"]; in the init of your cop unit(s)..... and if i put it into the mod.cpp of a serverside mod with: class CfgClothing { class U_Rangemaster { texture = "Altis_Life.Altis\textures\cop\cop_uniform.paa"; displayName = "Police Uniform"; }; }; I want to find a new way to texture this stuff Share this post Link to post Share on other sites
dreadpirate 173 Posted July 7, 2016 and if i put it into the mod.cpp of a serverside mod with: class CfgClothing { class U_Rangemaster { texture = "Altis_Life.Altis\textures\cop\cop_uniform.paa"; displayName = "Police Uniform"; }; }; I want to find a new way to texture this stuff Then the players need to have the mod to get the texture..... Share this post Link to post Share on other sites
tallionlp 10 Posted July 8, 2016 Then the players need to have the mod to get the texture..... But the texture is in the mission they download when joining Server Share this post Link to post Share on other sites
kylania 568 Posted July 8, 2016 Might want to just use setObjectTextureGlobal to apply the mission based texture to specific uniforms? Share this post Link to post Share on other sites
dreadpirate 173 Posted July 8, 2016 But the texture is in the mission they download when joining Server Yes. I agree that it should work. But unless they change something in the engine, it doesn't..... Share this post Link to post Share on other sites
scarecrow398 43 Posted July 8, 2016 But the texture is in the mission they download when joining Server So just to be clear, I'm guessing you want to have a police uniform that doesn't require users downloading a mod? So you're including the uniform colour map in the mission file and now you want to know how to apply the texture to a unit/player? In which case the easiest way is probably what Kylana/Dredd said, either putting something along the lines of this setObjectTextureGlobal [0, "\textures\cop\cop_uniform.paa"]; In the init of each unit you want to use the texture. Or having a script to replace the texture based on the uniform class name. Also as above, when you're doing the directory you don't need to list the file name such as texture = "Altis_Life.Altis\textures\cop\cop_uniform.paa"; "Altis_Life.Altis" can be deleted Share this post Link to post Share on other sites