HarryDE Posted August 8, 2019 Share Posted August 8, 2019 (edited) So there is the situation: There is a wall object that has 4 different textures applied on different side of the object and I would have to get which side of the wall the player is hovering with the cursor. Is there any solution for it? Edited August 8, 2019 by HarryDE Link to comment
ShayF Posted August 14, 2019 Share Posted August 14, 2019 You can try this community script shader example that gives you texture names.https://nightly.multitheftauto.com/files/shaders/shader_tex_names.zip Link to comment
HarryDE Posted August 15, 2019 Author Share Posted August 15, 2019 On 14/08/2019 at 07:05, ShayF said: You can try this community script shader example that gives you texture names.https://nightly.multitheftauto.com/files/shaders/shader_tex_names.zip Yes, I know this script. But this is not the thing that I need. So I would have to get the texture name that the player clicks on because the wall object has 4 separeted textures on itself. Link to comment
Scripting Moderators thisdp Posted August 15, 2019 Scripting Moderators Share Posted August 15, 2019 (edited) I am afraid that it is an unsolvable question with only object. First, there is no way to get the texture from an object by position. Second, we can not get the texture from an object even you know which face of the object the mouse clicks without analyzing the dff file. But you can store the texture data in a table .... Edited August 15, 2019 by thisdp Link to comment
JustinMTA Posted August 15, 2019 Share Posted August 15, 2019 I'm not sure what he means exactly either, But If I'm not mistaken I think he means that he wants to know which texture applies to each wall? If you add me on something or PM me I'll help you Link to comment
HarryDE Posted August 16, 2019 Author Share Posted August 16, 2019 17 hours ago, JustinMTA said: I'm not sure what he means exactly either, But If I'm not mistaken I think he means that he wants to know which texture applies to each wall? If you add me on something or PM me I'll help you Sent you a PM Link to comment
HarryDE Posted August 18, 2019 Author Share Posted August 18, 2019 Still don't get it.. Link to comment
Tails Posted August 18, 2019 Share Posted August 18, 2019 On 16/08/2019 at 16:32, HarryDE said: Sent you a PM Instead of sending a PM, please clarify it here in this thread, so others can help too such as myself. Link to comment
HarryDE Posted August 18, 2019 Author Share Posted August 18, 2019 6 hours ago, Tails said: Instead of sending a PM, please clarify it here in this thread, so others can help too such as myself. I explained him the problem better but actually he couldn't even help. But I can copy here my explanation that I have written in my PM. So I have a wall object that has 4 different textures. As this pictures shows: https://imgur.com/CSJBkSU ( Texture names: la_carp3, la_carp4, la_carp5, la_carp6 ) I checked them with shader_tex_names resource from MTA Wiki. But I'd have to get the name of the texture that I click on. For example, I click on the right side of the wall object then the function gives as result: la_carp3. Link to comment
JustinMTA Posted August 18, 2019 Share Posted August 18, 2019 I thought maybe he wanted the texture ID's and I was gonna use screen share to show him. I'm not a scripter, but I just searched on the wiki when I got back on PC and found this:ProcessLineOfSight Not sure if it'll work though man. Link to comment
nxFairlywell Posted August 19, 2019 Share Posted August 19, 2019 how did you applied 4 textures on single object? Link to comment
HarryDE Posted August 19, 2019 Author Share Posted August 19, 2019 6 hours ago, NX_CI said: how did you applied 4 textures on single object? You can do that in 3ds Max. 1 Link to comment
nxFairlywell Posted August 19, 2019 Share Posted August 19, 2019 (edited) 3 hours ago, HarryDE said: You can do that in 3ds Max. ** DELETED ** Edited August 19, 2019 by NX_CI Link to comment
HarryDE Posted August 21, 2019 Author Share Posted August 21, 2019 Any Ideas ? Because I still can't solve it Link to comment
Moderators IIYAMA Posted August 21, 2019 Moderators Share Posted August 21, 2019 3 minutes ago, HarryDE said: Any Ideas ? Because I still can't solve it Hovering is probably not possible. But you can get from each object it's texture names, based on the model id. https://wiki.multitheftauto.com/wiki/EngineGetModelTextureNames Or on screen: (+ filter option based on model id) https://wiki.multitheftauto.com/wiki/EngineGetVisibleTextureNames 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