HYDRAULIC_SWITCH_TOGGLE BUG

I have another bug to report. The key assignment does not work. And if i write
code that uses (>K:HYDRAULIC_SWITCH_TOGGLE) this also does not work. I am
forced to use (K:HYDRAULIC_SWITCH_TOGGLE) ! (>K:HYDRAULIC_SWITCH_TOGGLE) This
might be why the default key assignment fails.

Hi there, Looking at the code, the hydraulic system uses a 1 based indexing
system, and thus sending the key event in with an index of 0 is not valid. The
sim code does not look at the values of any other parameters when evaluating
this particular key command, and uses the current active state of the indexed
hydraulic system to set the inverse state. You should be able to get the
desired behavior by properly passing in the correct index of the hydraulic
system you wish to toggle. -Matt | Working Title

  1. 1  (>K:HYDRAULIC_SWITCH_TOGGLE) 

or

      1. 2  (>K:HYDRAULIC_SWITCH_TOGGLE)

This worked! Thanks @mattnischan