Jump to content

Recommended Posts

Posted

Hi,

Excuse me if this is not the right place to post this on the forums but I couldn't see any better places to put this.


I'm trying to figure out how I can manipulate the starting positions of switches in a cold & dark aircraft for 2 main reasons:

1) I'm developing an F-16 course for the community I'm part of and would like to be able to "mess up" the cockpit state of a cold & dark aircraft for the students so that they would be forced to use their checklists correctly. This promotes the use of checklists and also gives the instructors a way to catch on to a student not using their checklists. A switch might be placed in the wrong starting position by the instructor, if the student just starts up the aircraft by memory he might miss this.

2) Certain switches that are placed in the OFF position during the shutdown procedure, are in the ON position by default when spawning in the aircraft. Having these switches in the OFF position by default would make more sense, as if you're actually starting up an aircraft that you shut down using your checklists.

I've been looking around on the forums and the internet in general for a way to do this but can't really find anything. So far I have 2 ways in mind to accomplish this but no idea how to execute them.

First I was thinking there should be a script somewhere that defines the current cold & dark switch states, and that I could just edit those. But from what I've read on the internet and what I've seen in the cockpit scripts of the game files there seems to be no such script available. So how does DCS define what positions each switch should be in when jumping in a cold & dark aircraft?

Anyways, since the intention is to use this on a dedicated server I thought maybe the above methode might not work in multiplayer. So then I was thinking of doing this by making a macro script that would be automatically ran whenever a player jumps in an aircraft. This macro script would then place all the switches that need to be changed, in the correct positions, much like the auto start sequence also has a script that does exactly this.

So if anyone has any idea of how to accomplish this, please let me know. Any help is greatly appreciated!

Posted
52 minutes ago, Lennard said:

So if anyone has any idea of how to accomplish this, please let me know.

 

You can alter the cockpit switches using X:COCKPIT triggers, it's an extensive subject to cover in just a post, but take a look here as it might place you on the correct direction:

 

 

 

For work: iMac mid-2010 of 27" - Core i7 870 - 6 GB DDR3 1333 MHz - ATI HD5670 - SSD 256 GB - HDD 2 TB - macOS High Sierra

For Gaming: 34" Monitor - Ryzen 3600 - 32 GB DDR4 2400 - nVidia RTX2080 - SSD 1.25 TB - HDD 10 TB - Win10 Pro - TM HOTAS Cougar

Mobile: iPad Pro 12.9" of 256 GB

Posted
1 hour ago, Rudel_chw said:

 

You can alter the cockpit switches using X:COCKPIT triggers, it's an extensive subject to cover in just a post, but take a look here as it might place you on the correct direction:

 

 

Thank you! Now I've tried this out and it works, but once I change my aircraft to a client slot (which is what it would have to be for multiplayer) it doesn't work anymore. Is there a way to set up the trigger so that the action is only done when a player joins a client slot and then also only applies the actions to HIS aircraft and not everyone?

Posted
1 hour ago, Lennard said:

Thank you! Now I've tried this out and it works, but once I change my aircraft to a client slot (which is what it would have to be for multiplayer) it doesn't work anymore. 

 

I have used these triggers on client slots, but for missions that I host myself .. probably it doesn't work on a DCS dedicated Server. For example, on this case:

22lrhlg.jpg

This mission has no player slot, instead it has two client slots: One for ground start and a second for having an Air Start, and for each client I have the selected trigger where I set switches for configuring the lights, etc, of the client aircraft.

Pity that it seems to not be feasible on your case 😞

 

 

For work: iMac mid-2010 of 27" - Core i7 870 - 6 GB DDR3 1333 MHz - ATI HD5670 - SSD 256 GB - HDD 2 TB - macOS High Sierra

For Gaming: 34" Monitor - Ryzen 3600 - 32 GB DDR4 2400 - nVidia RTX2080 - SSD 1.25 TB - HDD 10 TB - Win10 Pro - TM HOTAS Cougar

Mobile: iPad Pro 12.9" of 256 GB

Posted

 

On 8/11/2022 at 1:08 AM, Rudel_chw said:

 

I have used these triggers on client slots, but for missions that I host myself .. probably it doesn't work on a DCS dedicated Server. For example, on this case:

22lrhlg.jpg

This mission has no player slot, instead it has two client slots: One for ground start and a second for having an Air Start, and for each client I have the selected trigger where I set switches for configuring the lights, etc, of the client aircraft.

Pity that it seems to not be feasible on your case 😞

 

Ah ok thanks for the explanation! And yeah I guess maybe I'll still be able to accomplish this with a macro script that automatically runs when a player gets into a slot. At least I now know how to do this in single player for my personal missions so thanks a lot!

  • Like 1
  • Recently Browsing   0 members

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