Jump to content

Recommended Posts

Posted

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.

Posted

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.

Posted (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 by A Hamburgler
Posted

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 *

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...