For anyone wondering what the current build of this script is for Arma 3, the above quoted is it, it works beautifully and is exactly what i needed. Thanks Tophe for the original script and thanks Nimrod for reposting the updated one!
However, i couldnt get one thing to work after countless tweaking and trying different things, i couldnt get my custom loadout to respawn with the vehicle, or more precisely, i couldnt get the respawned vehicle to use the custom loadout (secondary sqf file, the primary sqf being the respawn script). Custom loadout shows up at the begining of the mission but subsequent respawns are just the default loadout.
Still learning about scripting so i'm assuming my syntax might be off or i'm missing something here, any help would be greatly appreciated!
Here is my current code:
Vehicle init:
Respawn sqf (vehicle.sqf):
As you might have noticed i even put an extra line in the vehicle.sqf (respawn script) to try and get it to load the custom loadout with no luck. Thanks in advance for any help you might be able to offer on this!
Zulu