BDC_Osiris Posted February 20, 2020 Share Posted February 20, 2020 Is there a way to swap between two or more textures applied on the same model during the game? For example, I have a weapon_name.txd file containing the main weapon texture and the same texture but with a tint applied to it. So I have main_texture and tint_texture applied to the same model. How can I swap between the two during the gameplay to apply a different texture to my model? Link to comment https://gtaforums.com/topic/946684-requestsa-how-can-i-swap-between-two-textures-of-the-same-model/ Share on other sites More sharing options...
ZAZ Posted February 21, 2020 Share Posted February 21, 2020 This feature exist for vehicles by script codes 06ED: set_car 1@ paintjob 0 And for the player model 0053: $PLAYER_CHAR = create_player #NULL at 2488.562 -1666.865 12.8757 09C7: change_player $PLAYER_CHAR model_to #FAM1 ------------------------------------ Or for Spray TAG objects by another method See into tags2_LAlae.txd and in dynamic2.ide for 1490, tag_01, tags2_LAlae, 100, 1048580 This feature is hadcoded and requires the use of spraycan weapon ------------------------------------ then there is this script code 08F0: set_cutscene_model 'GANGRL3' texture 'GFRIEND' // 8-byte strings 08F0 APPEND_TO_NEXT_CUTSCENE() i don't know what to do with it, seems to be made for cutscene 08F0: set_cutscene_model 'GFPIZ1' texture 'GFPIZ1' // 8-byte strings 08F0: set_cutscene_model 'GFPIZ2' texture 'GFPIZ2' // 8-byte strings 02E4: load_cutscene_data 'DATE1A' ------------------------------- but nothing for weapon, i think you have to create several weapons of same model with different texture and each has own ide and weapon data ------------------------------- Or ask DK22Pac, he made new opcodes for cleo and applied textures everywhere he want Link to comment https://gtaforums.com/topic/946684-requestsa-how-can-i-swap-between-two-textures-of-the-same-model/#findComment-1071085250 Share on other sites More sharing options...
BDC_Osiris Posted February 25, 2020 Author Share Posted February 25, 2020 On 2/21/2020 at 2:52 PM, ZAZ said: This feature exist for vehicles by script codes 06ED: set_car 1@ paintjob 0 And for the player model 0053: $PLAYER_CHAR = create_player #NULL at 2488.562 -1666.865 12.8757 09C7: change_player $PLAYER_CHAR model_to #FAM1 ------------------------------------ Or for Spray TAG objects by another method See into tags2_LAlae.txd and in dynamic2.ide for 1490, tag_01, tags2_LAlae, 100, 1048580 This feature is hadcoded and requires the use of spraycan weapon ------------------------------------ then there is this script code 08F0: set_cutscene_model 'GANGRL3' texture 'GFRIEND' // 8-byte strings 08F0 APPEND_TO_NEXT_CUTSCENE() i don't know what to do with it, seems to be made for cutscene 08F0: set_cutscene_model 'GFPIZ1' texture 'GFPIZ1' // 8-byte strings 08F0: set_cutscene_model 'GFPIZ2' texture 'GFPIZ2' // 8-byte strings 02E4: load_cutscene_data 'DATE1A' ------------------------------- but nothing for weapon, i think you have to create several weapons of same model with different texture and each has own ide and weapon data ------------------------------- Or ask DK22Pac, he made new opcodes for cleo and applied textures everywhere he want Ok, thank you for your answer. I will try some 'alrernative' methods for now. I have another question. Is there an opcode or something else that allows me to detach a child object from my 3d model hierarchy? For example, if I have a 'magazine' object in my 'weapon' 3d model, can I isolate it and make it, for example, disappear or move indipendently from his parent model? Link to comment https://gtaforums.com/topic/946684-requestsa-how-can-i-swap-between-two-textures-of-the-same-model/#findComment-1071088690 Share on other sites More sharing options...
007Ripper Posted February 28, 2020 Share Posted February 28, 2020 On 2/25/2020 at 5:06 PM, BDC_Osiris said: Ok, thank you for your answer. I will try some 'alrernative' methods for now. I have another question. Is there an opcode or something else that allows me to detach a child object from my 3d model hierarchy? For example, if I have a 'magazine' object in my 'weapon' 3d model, can I isolate it and make it, for example, disappear or move indipendently from his parent model? No. RyanDri3957V 1 Link to comment https://gtaforums.com/topic/946684-requestsa-how-can-i-swap-between-two-textures-of-the-same-model/#findComment-1071091370 Share on other sites More sharing options...
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