warbirdguy1 14 Posted September 16, 2016 Hello, I am trying to get the texture on my aircraft to re spawn with the aircraft every time it is destroyed. At this point I can get the texture on at first but if the aircraft is destroyed it will respawn with the default texture and not the one I originally assigned to it. I attach the texture by putting this in the init box. Of course this one will not respawn with the aircraft when it is destroyed. this setdir getdir(f1601); this SetObjectTexture [0,"pics\dv8red.jpg"]; this attachTo [f1601,[0,-.1,0.6]]; Any help is appreciated. Please keep in mind I am only moderately ArmA literate so please break it down to dummy terms and instructions. Thans Share this post Link to post Share on other sites
davidoss 552 Posted September 16, 2016 The question is how you are re-spawning your aircraft and you need this for MP or SP 1 Share this post Link to post Share on other sites
warbirdguy1 14 Posted September 16, 2016 The question is how you are re-spawning your aircraft and you need this for MP or SP Multiplayer (See title) and the Vehicle Respawn module sycned to the F-16 I wish to respawn. Share this post Link to post Share on other sites
davidoss 552 Posted September 16, 2016 Its easy to achieve. At Vehicle Respawn Module in field expression paste this: if (isServer) then { params [["_newVeh", objNull], ["_oldVeh", objNull]]; if (typeOf _newVeh == "classname") then { _newVeh SetObjectTextureGlobal [0,"pics\dv8red.jpg"]; }; }; change "classname" to your aircraft classname Share this post Link to post Share on other sites
HallyG 239 Posted September 16, 2016 (edited) Multiplayer (See title) and the Vehicle Respawn module sycned to the F-16 I wish to respawn. If it's multiplayer, you need to use setObjectTextureGlobal. Add this to the unit's init: 0 = this addEventHandler ["Respawn", { params ["_unit", "_corpse"]; private _textures = getObjectTextures _corpse; _unit setObjectTextureGlobal [0, _textures select 0]; }]; Untested but this is the general idea // Edit Oh, Davidoss already replied. woops Edited September 16, 2016 by hallyg Share this post Link to post Share on other sites
davidoss 552 Posted September 16, 2016 If it's multiplayer, you need to use setObjectTextureGlobal. Add this to the unit's init: Yes, true but you also need to worry that the command runs only once and by server. Share this post Link to post Share on other sites
HallyG 239 Posted September 16, 2016 Yes, true but you also need to worry that the command runs only once and by server. It will only run once, upon the unit's respawn..? Well the wiki doesn't have anything about it being run on the server, it's global so should work on clients too. // Edit: Oh I think you meant running again due to it being put in the init of an editor unit. My bad, I don't use the editor much. Share this post Link to post Share on other sites