Jump to content

Recommended Posts

Posted

I think every time the player pulls down the switch, there will be a message showing the current position of the switch. If I use scripts instead of triggers, what should I do? Can anyone help me? thanks

Posted

You can use several conditions in the Mission Editor to check the position of switches or settings within the cockpit. 

e.g. X: COCKPIT ARGUMENT IN RANGE or X: COCKPIT PARAM EQUAL TO / IN RANGE

Example below checks if the Master Arm Switch is turned on in  the F-4. 

image.png

Posted
11小时前,Cyking说:

You can use several conditions in the Mission Editor to check the position of switches or settings within the cockpit. 

e.g. X: COCKPIT ARGUMENT IN RANGE or X: COCKPIT PARAM EQUAL TO / IN RANGE

Example below checks if the Master Arm Switch is turned on in  the F-4. 

image.png

  • Thank you. I understand this. What I want to say is how to implement this function with a script. Each time the player pulls the switch, a message is displayed.
Posted
1 hour ago, Qazplm said:
  • Thank you. I understand this. What I want to say is how to implement this function with a script. Each time the player pulls the switch, a message is displayed.

As far as I am aware you cannot read out the cockpit parameters with a lua script, but maybe I am wrong. So you need to setup the condition check in the ME. In the "Action" you can put a do script for messages or sth else. 

Posted
6小时前,Cyking说:

As far as I am aware you cannot read out the cockpit parameters with a lua script, but maybe I am wrong. So you need to setup the condition check in the ME. In the "Action" you can put a do script for messages or sth else. 

I can use scripts to read and set cockpit parameters, but I'm not familiar with programming. The scripts I wrote can only determine the current status of the switches and will not be written to make judgments after the player pulls the switches

  • Recently Browsing   0 members

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