Solstice. Posted January 10, 2013 Share Posted January 10, 2013 Hello. I'm aware it's possible to change .txds of objects. Although I'm wondering if it's possible to say replace the .txd of a single object in the same dimension/interior. Basically if there'd be several 24/7s around town would it be possible to change the front logo if one of them to another,, if both of the structures use the same objects, without setting each 24/7 around the map to having that same replaced logo? The objects would be in the same location. Thanks in advance. Link to comment
Moderators IIYAMA Posted January 10, 2013 Moderators Share Posted January 10, 2013 Nope, Because change .txds is like adding mods to objects. TXD isn't generated by a onClientRender function, but will replace it's object colours. But the directX functions give use hope, to do the impossible. Write "dx" in wiki mta and you will find other directx functions. https://wiki.multitheftauto.com/wiki/DxCreateShader Link to comment
myonlake Posted January 10, 2013 Share Posted January 10, 2013 I was thinking about objects created via createObject, but I don't think it will be functioning with the engine functions at this time. However, you can use the dx-shader functions. My friend made a shader function for his own car only in order to change the texture, all other cars remained original. I can't remember how its done, but hopefully someone has a solution. Edit: Almost as fast as IIYAMA Link to comment
denny199 Posted January 10, 2013 Share Posted January 10, 2013 @myonlake engineApplyShaderToWorldTexture ( element shader, string textureName [, element targetElement = nil, bool appendLayers = true ] ) plox, the 3th argument: targetElement. Link to comment
50p Posted January 10, 2013 Share Posted January 10, 2013 You can also load different txds depending on situation, position, etc. So, you can load 1 txd for the model if you are close to 1 shop but load different txd if you're close to the other shop. This method will only work if the 2 same models are not visible at the same time. Link to comment
Solstice. Posted January 10, 2013 Author Share Posted January 10, 2013 denny199 said: engineApplyShaderToWorldTexture ( element shader, string textureName [, element targetElement = nil, bool appendLayers = true ] ) plox, the 3th argument: targetElement. I'll see to checking out of that actually works. 50p said: You can also load different txds depending on situation, position, etc. So, you can load 1 txd for the model if you are close to 1 shop but load different txd if you're close to the other shop. This method will only work if the 2 same models are not visible at the same time. Good idea. I intend to handle a system like this for interiors but I was trying to figure how to script a breakthru exterior script. It's basically about a player-ran business which is not a state-wide company. It'd be a nuisance to see another company's logo appear on someone else's property. Thanks for the reply. Really helped out. 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