Jump to content

Joystick Gremlin - Remembering toggle button states


Recommended Posts

=FF4H=Blackbird71
Posted

I am trying to map a button in IL2 so that in joystick gremlin it keeps track of its state and then plays a different sound action for each state.

 

ie: Press button first time it says 'cockpit lights on'

next press gives 'cockpit lights off'

next press gives 'cockpit lights on'

etc, etc

 

I have the sound action wavs already and I think I need to use a 'cycle mode' action in some way but i cannot figure out exactly how as there seems to be no documentation.

=FF4H=Blackbird71
Posted (edited)

Yes I saw that already but it gives no detail on actually how to do it and the notes are really vague.

 

How can I add the "Nodes" and also attach an action to each node in the cycle???

I only have "Default" shown in the dropdown box and cannot seem to add/edit anything

Screenshot 2021-01-02 115100.png

Edited by Blackbirdkevini1963
=FF4H=Blackbird71
Posted

I figured it out as follows:

1. Create 2 new modes in the TOOLS>MANAGE MODES. Call one up/on and the other down/off so they can be used for different toggle states.

2. Under each of the different toggle modes create your desired action to be carried out (in the case below it plays a sound "Navigation Lights On" when button22 is pressed the first time and then plays "Navigation lights off" the next time and it then flips as you would expect.

 

The cycle mode action under each mode just flips the mode state to the next one (either on or off)

 

You could use this for a variety of things.

 

The only thing to watch out for is that the button state may not be synchronised with the actual game state.

eg: If you start your game on the ground your gear would be down....if you start in the air it would normally be up.

 

For navigation lights and other things which default to off then its OK

jg1.png

jg2.png

jg3.png

  • Upvote 1

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...