20,741
edits
No edit summary |
m (→/Nasal/fbw.nas: OOPS: initialize vector - setsize() would do, too: http://plausible.org/nasal/lib.html) |
||
Line 147: | Line 147: | ||
# use a vector of throttles, this can be later on used to support more than | # use a vector of throttles, this can be later on used to support more than | ||
# just two engines | # just two engines | ||
var throttles = []; | var throttles = [nil,nil]; | ||
throttles[0] = getprop("controls/engines/engine[0]/throttle"); | throttles[0] = getprop("controls/engines/engine[0]/throttle"); | ||
throttles[1] = getprop("controls/engines/engine[1]/throttle"); | throttles[1] = getprop("controls/engines/engine[1]/throttle"); |