Bindings: Difference between revisions

Jump to navigation Jump to search
339 bytes added ,  24 July 2021
→‎property-assign: Update: Can also be used to set it to another property's value
(→‎property-assign: Update: Can also be used to set it to another property's value)
Line 108: Line 108:


=== property-assign ===
=== property-assign ===
One of the most important commands. It sets a property to a predefined value.
One of the most important commands. It sets a property to a predefined value or to the value of another property.<ref>{{flightgear source
| path = src/Main/fg_commands.cxx
| line = 446
}}</ref>
<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
<binding>
<binding>
Line 114: Line 117:
   <property>/autopilot/settings/target-speed-kt</property>
   <property>/autopilot/settings/target-speed-kt</property>
   <value>0</value>
   <value>0</value>
</binding>
</syntaxhighlight>
or<syntaxhighlight lang="xml">
<binding>
  <command>property-assign</command>
  <property>autopilot/input/hdg</property>
  <property>instrumentation/heading-indicator/hdg-autopilot</property>
</binding>
</binding>
</syntaxhighlight>
</syntaxhighlight>
Line 250: Line 260:


There's also an unregister command ('clear-metar') to cancel the binding into the property tree.<ref>{{cite web |url=http://www.mail-archive.com/flightgear-devel@lists.sourceforge.net/msg38372.html|title=<nowiki>[Flightgear-devel] Requesting arbitrary metar</nowiki>|author=James Turner|date=Sun, 23 Sep 2012 08:56:48 -0700}}</ref>|James Turner}}
There's also an unregister command ('clear-metar') to cancel the binding into the property tree.<ref>{{cite web |url=http://www.mail-archive.com/flightgear-devel@lists.sourceforge.net/msg38372.html|title=<nowiki>[Flightgear-devel] Requesting arbitrary metar</nowiki>|author=James Turner|date=Sun, 23 Sep 2012 08:56:48 -0700}}</ref>|James Turner}}
<references/>
<references/>


681

edits

Navigation menu