395
edits
(maketimer) |
Philosopher (talk | contribs) m (→fgcommand()) |
||
Line 39: | Line 39: | ||
=== <tt>fgcommand()</tt> === | === <tt>fgcommand()</tt> === | ||
Runs an internal "fgcommand", see [[ | Runs an internal "fgcommand", see [[Bindings]] for a full list of available items (since they are most often used in bindings for input devices). The first argument is the name of the command (e.g. "property-interpolate") and the second is a props.Node object or its ghost which is the "argument" to the fgcommand. (This ensures that fgcommands are universal since props.Node/SGPropertyNode objects can really be accessed from anywhere in FlightGear.) Each fgcommand returns 1 if it succeeded or 0 if it failed. | ||
The profiling related fgcommands '''profiler-start''' and '''profiler-stop''' are documented at [[Built-in Profiler]]. | The profiling related fgcommands '''profiler-start''' and '''profiler-stop''' are documented at [[Built-in Profiler]]. |
edits