June 19, 200421 yr Gauge programming is not my thing...I am a graphics guy. Unfortunately, I wasn't able to get anyone to help me with my F104 project so I have attempted to do the job myself(almost done). I am stuck in a couple of areas and would REALLY appreciate any help provided. Ok, here's the question. I have a dummy switch called AUX TRIM CONTROL, in that same gauge I have several click spots that control Aileron Trim and Elevator Trim. I have the code setup properly with one exception; I want the click spots to only work when the AUX TRIM (atswitch) is ON, when it is OFF I do not want those click spots to work. Here's the code below:(L:atswitch,bool)(L:guard,bool)(L:guard,bool) if{ (L:atswitch,bool) ! (>L:atswitch,bool) }%Aux Trim Control (%((L:atswitch,bool))%{if}ON%{else}OFF%{end})(L:guard,bool) ! (>L:guard,bool)Stab Trim DownStab Trim UpStab Trim ResetWhat do I need to modify to make the above true? Lastly, I want to make 3 switches in one gauge called ROLL, PITCH and YAW. Each switch will have an ON/OFF function. When the switches are set to OFF I would like to disallow any movement of the Ailerons, Elevator and Rudder respectively. Is this possible? I know most people wont take the time to respond to this but if you do I would be very greatful. Thank you.-Virtual Pilot
June 20, 200421 yr Author Hi,Just an exampleMake the functional clickspot dependable of the dummy action:Say a switchguard "dummy": (L:dummy,bool) ! (>L:dummy,bool) and the funtion under it: (L:dummy,bool) if{ (L:function,bool) ! (>L:function,bool) }If the function is OFF, you can connect something with it: (L:function,bool) ! if{ (>K:ELEVATOR_SET) (>K:AILERON_SET) >K:RUDDER_SET) } Hope it helps,Jan"Beatus Ille Procul Negotiis" Jan "Beatus ille qui procul negotiis..."
Create an account or sign in to comment