simonwa1 0 Posted March 17, 2007 Im currently working on my first arma mission and doing some experiments, and i have a few questions. Purpose: To respawn destroyed vehicles. It look like this at the moment: Init.sqs <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">sprtVeh = [sprtAmb1, sprtAmmo, sprtFuel, sprtRepair] Trigger: Condition: (!alive sprtAmmo) || (!alive sprtAmb1) On Actiovation: sprtVeh = exec "sRespawn.sqs" sRespawn.sqs <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">switch (_vehicle) do { Case sprtAmb1: { _vehicle = createVehicle ["M113ambul",a,[] ,1,"NONE"] } Case sprtAmmo: { _vehicle = createVehicle ["truck5tReAmmo",a,[] ,1,"NONE"] } }; Ok, first of all, when one of the vehicles are being destroyed both vehicles respawn, which they should not(Only the one which was being destroyed should respawn). And i get an error: "{ is missing". Is it possible to know which Object/Vehicle who activated the script? Since it probably whould same some lines, instead of doing a "switch" block. How do i make the vehicle to respawn at a marker named "mRespawn", instead of respawn near the player? P.S I dont want to use the in-built respawn function(wanna learn about the language) Thanks for help! (Sorry for double-posting, I put it in the wrong section and i could'nt move it) Share this post Link to post Share on other sites