J.S. Posted October 3, 2013 Share Posted October 3, 2013 So I've made a script which was intended to change the texture of a single road. The code itself is fairly remedial and should come as no surprise txd = engineLoadTXD("newroads1.txd") engineImportTXD(txd, 5506) The script successfully replaces the road which it was intended to replace, however for some reason it goes on to replace all roads using the same textures (dt_road and snpedtest1 to be specific) even though it was set to change only that single road (5506). (Visual explanation) Any clues as to why this is? Everything seems like it should be working as it should. Edit: To clarify, the road I intended on changing is a single object, the others are separate objects. Link to comment
Chopper Posted October 4, 2013 Share Posted October 4, 2013 I dont think its possible, as txd has more than one texture in it. Link to comment
HunT Posted October 4, 2013 Share Posted October 4, 2013 It's possible with shader. Create Object and shader function. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now