Zaptoman 8 Posted June 11, 2017 Hey all. Perhaps you can help me with a problem. I've used the setObjectTexture command to great success on vehicles placed in EDEN, placing them and then putting something like setObjectTexture [0, "textures\police_heli.paa"]; in their init field. Bingo, the (in this case) helicopter is there, and it is wearing it's appropriate skin/texture. The problem is respawning. When the vehicle is destroyed, it respawns just fine (I am using the BIS respawn module in EDEN, linked to the vehicle in question). The problem is, that when the vehicle respawns, it respawns with a random skin/texture. Sometimes it's black, sometimes it's tiger-stripe, etc. I've searched the forums and google to no avail to try to fix this. All I want, is for when the vehicle is respawned, to have the same (custom) textures it started with. Share this post Link to post Share on other sites
Zaptoman 8 Posted June 11, 2017 I'm an idiot. I figured it out. Thanks! For others: In the respawn module EXPRESSION (not init) field I have: (_this select 0) spawn Fnc_Set_Textures; then in init.sqf I have: Fnc_Set_Textures = { if ( (_this iskindof "C_Heli_Light_01_civil_F") or (_this iskindof "B_Heli_Light_01_dynamicLoadout_F") ) then { _this setObjectTexture [0,"textures\police_heli.paa"]; }; } ; 2 Share this post Link to post Share on other sites
Jeremy James 2 Posted October 17, 2023 I have to exact same problem however this does not work for me, maybe out of date which is a shame Share this post Link to post Share on other sites
JCataclisma 36 Posted October 17, 2023 I have never used such respawn/fnc style, but in case it is really no longer working, you can use those same codes in some trigger at the spawning/respawnin area of the desired vehicles. So every time one of them appears there, its textures would be instantly changed. It would be something without the brackets and in the activation field, not exactly requiring more code on external SQFs, like if ( (_this iskindof "C_Heli_Light_01_civil_F") or (_this iskindof "B_Heli_Light_01_dynamicLoadout_F") ) then { _this setObjectTexture [0,"textures\police_heli.paa"]; }; Share this post Link to post Share on other sites
Jeremy James 2 Posted October 17, 2023 I've just 3 minutes ago sorted it out, thank you anyways cheers Share this post Link to post Share on other sites