A Hamburgler Posted April 11, 2018 Posted April 11, 2018 So wanted to know if there is a way to switch the players jet mid mission after a condition is met. So example once my certain condition is met the player will go from his av8b to an a10 that I had set up at another airbase. So basically just change the player to a different jet.
feefifofum Posted April 11, 2018 Posted April 11, 2018 There is not a way to add the slot or block it until a certain point without a modification on every player's PC; your best bet is to simply say in the briefing what it is exactly you want the player to do, then use a MESSAGE TO ALL function to put a text message on the screen when you want them to switch aircraft. THE GEORGIAN WAR - OFFICIAL F-15C DLC
A Hamburgler Posted April 11, 2018 Author Posted April 11, 2018 (edited) There is not a way to add the slot or block it until a certain point without a modification on every player's PC; your best bet is to simply say in the briefing what it is exactly you want the player to do, then use a MESSAGE TO ALL function to put a text message on the screen when you want them to switch aircraft. It’s a single player mission. Would that be possible still or no. Was also thinking of a workaround like removing the a10s fuel then when my condition is met have fuel in the jet. Edited April 11, 2018 by A Hamburgler
feefifofum Posted April 12, 2018 Posted April 12, 2018 Yes, set both aircraft to "client" rather than "player" and people will be able to swap between them at any point. As long as they follow your instructions things will work as planned. :thumbup: THE GEORGIAN WAR - OFFICIAL F-15C DLC
Pikey Posted April 13, 2018 Posted April 13, 2018 In terms of a script and condition that forces it, you would need to use the API in the server environment whilst running the mission as as server host as a client. The net.set_slot(sideID, slotID) would work. But you can't call that from the mission environment. You would have to use a hook via a gameGui.lua. Which you can use other scripting in, if you look at the way TacView does it or you can use Global Flags which exist across both environments. I've done it both ways (running scripts as a hook and using global flags) but it's way beyond anyone's interest/capacity/time to do it and it's not feasible in any simple means for the forum. Check out Ciribobs Simple Slot Blocker for the global flags method, you would need to rewrite it though for what you are after. You can't remove fuel using DCS SSE. ___________________________________________________________________________ SIMPLE SCENERY SAVING * SIMPLE GROUP SAVING * SIMPLE STATIC SAVING *
Recommended Posts