Sign in to follow this  
Guest

Can anyone give a step by step ....

Recommended Posts

Can anyone give a step by step breakdown of the KEY events?KEY_LANDING_LIGHTS_TOGGLEKEY_LANDING_LIGHT_UPKEY_LANDING_LIGHT_DOWNKEY_LANDING_LIGHT_LEFTKEY_LANDING_LIGHT_RIGHTKEY_LANDING_LIGHT_HOMEKEY_LANDING_LIGHTS_ON - extended on?KEY_LANDING_LIGHTS_OFF - retracted?KEY_LANDING_LIGHTS_SET - entended off? KEY_TOGGLE_TAXI_LIGHTS KEY_TOGGLE_BEACON_LIGHTSKEY_TOGGLE_NAV_LIGHTS KEY_TOGGLE_LOGO_LIGHTS KEY_TOGGLE_WING_LIGHTS KEY_STROBES_TOGGLEKEY_STROBES_ONKEY_STROBES_OFFKEY_STROBES_SET KEY_TOGGLE_RECOGNITION_LIGHTS

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Hello again John.First off a KEY event means that when you assign this to, say, a mouse click, it will change something in the sim. Whenever you have a TOGGLE, it means every time you activate this, it will change the current state of that event to the opposite of what it is now. Example:KEY_LANDING_LIGHTS_TOGGLE will turn the landing lights off if they are on, and on if they are off. This is usually used when you have only a button for something, instead of a two or three-positions switch.KEY_LANDING_LIGHT_UP = moves the beam of the landing light up. The other three are self-explanatory afer this one.KEY_LANDING_LIGHT_HOME = brings the landing light beam to its original, initial position.KEY_LANDING_LIGHTS_ON = This will turn the lights on if they are off, and do nothing if they are already on. Usually used with a positional switch, so that when you move it to the position that reads "Landing Lights On" on the panel, it will trigger this key event, every time. Same idea for the _OFF.KEY_LANDING_LIGHTS_SET = not sureKEY_TOGGLE_TAXI_LIGHTS, KEY_TOGGLE_BEACON_LIGHTS, KEY_TOGGLE_NAV_LIGHTS , KEY_TOGGLE_LOGO_LIGHTS, KEY_TOGGLE_WING_LIGHTS are all the same as the explained TOGGLE above, just different types of light you can have in FS.KEY_STROBES_TOGGLE, KEY_STROBES_ON, KEY_STROBES_OFF, KEY_STROBES_SET have the same explanation as the landing light example above, just controlling the strobe light instead. Again, no idea about the SET one.KEY_TOGGLE_RECOGNITION_LIGHTS = Toggles the recog. lights between on and off.Keep in mind these are just different types of lights aircraft tend to have, but are not necessarily represented in most models. If you are making your own aircraft, you will have to build all these as separate lights if you wish to use them.

Share this post


Link to post
Share on other sites

With trigger_key_event(KEY_LANDING_LIGHTS_SET,1); you can set the landing lights to on,with trigger_key_event(KEY_LANDING_LIGHTS_SET,0); you can set the landing lights to off.Arne Bartels

Share this post


Link to post
Share on other sites

Another way to say this;_SET commands require an argument to work properly.I.e.10000 (>K:SPOILERS_SET)_SET commands are especially useful when things happen all by themself and is not directly influenced by the toggling of a switch etc.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this