Jump to content
Sign in to follow this  
_BARNS_

addaction after respawn?

Recommended Posts

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

add this to your script:

[color="Blue"]unit[/color] setVehicleInit "this addaction........";
processInitCommands;

Share this post


Link to post
Share on other sites

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×