681
edits
m (→Forum topics) |
(→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/> | ||
edits