Mt5_Roie Posted January 20, 2016 Posted January 20, 2016 So I'm trying to see if this is possible without getting too crazy. But essentially aircraft will start in Anapa and need to advance to the south and take over airfields. Once they've taken over airfields they need to land, hop in another vehichle (rotor or another) to accomplish another task. Then go back to their original jet and rinse and repeat. So is there a way to tell the code that if a plane lands at and airfield, to change it's spawn location to that airfield.? Ideally I would like it to follow the player as they move south...but if the plane gets destroyed it would only be able to be respawned from Anapa. Am I thinking too big? I would need to do this for about 10-12 planes. Coder - Oculus Rift Guy - Court Jester
Ciribob Posted January 20, 2016 Posted January 20, 2016 There is one way to do this, which is using late activation for the player units which should work. Just mark a player as Late Activation in the mission editor and then activate with a mission trigger at some point. A much more complicated way is using the DCS API as I do with the CSAR Script here: https://github.com/ciribob/DCS-CSAR specifically this file: https://github.com/ciribob/DCS-CSAR/blob/master/csarSlotBlockGameGUI.lua This blocks slots from being used based on a flag value in the mission Scripts: Complete Transport And Logistics Deployment - CTLD / CTLD Examples - Lots of example of how to use CTLD CSAR Script - Downed Pilot Rescue / Dedicated Server Script - Automatically launch DCS Multiplayer server at startup Range Scoring Script - Get scores and counts hits on targets for gunnery or bombs / SimpleSlotBlock - Multiplayer dynamic Slot Blocking Script Projects: DCS-SimpleRadio Standalone - DCS Radio Integration for All Aircraft - NO TeamSpeak Required! :) DCS-SimpleRadio Troubleshooting Post / DCS-SimpleRadio Free Support Channel on Discord
Mt5_Roie Posted January 20, 2016 Author Posted January 20, 2016 So essentially pre-populate every airfield with each type of aircraft that they would need, make them all late activation except Anapa and as planes land there I activate them. Is there a way de-activate them if they get destroyed? Trying to make sure the player stars all the way at Anapa if their aircraft is destroyed. Coder - Oculus Rift Guy - Court Jester
Ciribob Posted January 20, 2016 Posted January 20, 2016 exactly that! Should work. :) Scripts: Complete Transport And Logistics Deployment - CTLD / CTLD Examples - Lots of example of how to use CTLD CSAR Script - Downed Pilot Rescue / Dedicated Server Script - Automatically launch DCS Multiplayer server at startup Range Scoring Script - Get scores and counts hits on targets for gunnery or bombs / SimpleSlotBlock - Multiplayer dynamic Slot Blocking Script Projects: DCS-SimpleRadio Standalone - DCS Radio Integration for All Aircraft - NO TeamSpeak Required! :) DCS-SimpleRadio Troubleshooting Post / DCS-SimpleRadio Free Support Channel on Discord
Recommended Posts