Jump to content
Sign in to follow this  
BobbyC101st

I'm looking for help respawning a vehicle with it's ammo

Recommended Posts

Hi Guys,

I'm sure there is a bright spark out there who knows how to make this happen.

I have a vehicle with the 2 following lines in the INIT field in the Arma 2 editor.

veh = [this, 10, 240] execVM ""Simple_Vehicle_Respawn\vehicle.sqf"";

nul = [this] execVM ""Ammo.sqf"";

It works great...the ammo in the SQF file is available from the vehicle but not after the vehicle respawns.

Easy way out is to put more vehicles back at base and no respawn but not knowing the answer to this is bugging me.

thanks in advance,

:j:

---------- Post added at 20:57 ---------- Previous post was at 20:53 ----------

I meant to add I use Ace 2 if this may make a difference to the problem.

Thanks

Share this post


Link to post
Share on other sites

I think something like this should work

nul = [this] execVM "Ammo.sqf"; veh = [this, 10, 240, 0, false, false, "nul = [this] execVM ""Ammo.sqf"""] execVM "Simple_Vehicle_Respawn\vehicle.sqf";

Share this post


Link to post
Share on other sites

:yay: Many thanks 11ATony.....that worked 1st time with full ammo respawned in the vehicle.

Brilliant..thanks

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  

×