_BARNS_ 0 Posted June 28, 2010 Hello i made a mission where you can call in support from a vehicle, i made this with "addaction ... " in the init line of the vehicle and the vehicles are all able to respawn after beeing destroyed. Now after the vehicle respawn the "addaction ... " is gone, has anybody an idea how to make it possible to recover or to add the action again to the recently respawned vehicle? thx for help! Share this post Link to post Share on other sites
dematti 10 Posted June 28, 2010 add this to your script: [color="Blue"]unit[/color] setVehicleInit "this addaction........"; processInitCommands; Share this post Link to post Share on other sites
_BARNS_ 0 Posted June 29, 2010 Hey m8, thats how my script looks like, i used processInitCommands but it is still not working ... Code: _unit = _this select 0; _unit setVehicleInit act1 = this addAction ["Call RACS gunship support","actions\callgs.sqs"]; act2 = _unit addAction ["Call RACS paratroopers","actions\callpa.sqs"]; act3 = _unit addAction ["Call USMC reinforcements","actions\callre.sqs"]; act4 = _unit addAction ["Call RACS CAS - Lasertarget","actions\callca.sqs"]; processInitCommands; ~5 hint "hint: Test."; exit; Share this post Link to post Share on other sites
Egosa-U 10 Posted June 29, 2010 (edited) Call it up again after the vehicle is "alive" again, like here with the weapons: http://forums.bistudio.com/showthread.php?t=76731&highlight=Weapon+respawn Especially with Rommels-answer (#3): http://forums.bistudio.com/showpost.php?p=1334119&postcount=3 Edited June 29, 2010 by Egosa-U Share this post Link to post Share on other sites
steelblood 10 Posted June 29, 2010 Hmm in my missions (I don't have the addaction) However the vehicle executes a locator.sqf file in order for the mobile respawn to work. (So i assume the same applies) the trouble with naming the vehicle in scripts is that it changes the name after it respawns (I believe) So i don't know if it will work for you but on my mission what i do is put all the scripts etc after the vehicle respawn script (It could be total coincidence and of no help :)) but i hope that helps in some way as i think the editor goes through each script in order therefore if you stick it after your respawn script it should be there ? But if there is some "Proper" way of doing it i'le let you know or please let me know too :) Dan Edit: So try making a code that allows you to call in the support and add that to the vehicle ? Share this post Link to post Share on other sites