From: Melchior F. <mf...@ao...> - 2006-12-06 10:08:52
|
* Torsten Dreyer -- Wednesday 06 December 2006 10:58: > foo = aircraft.light.new( "/sim/model/lights/foo", 0.5, 0.3 ); > foo.interval = 0.1; > foo.switch( 1 ); > > produces the error message > Nasal runtime error: function/method call invoked on uncallable object > at some/path/foo.nas, line 3 Heh, that's a bug in aircraft.nas that I introduced two days ago(?) and that I fixed yesterday (both branches). Just update. I had accidentally redefined the "switch()" method as a member variable. BTW: foo.interval = 0.1; isn't necessary any more. It doesn't even exist. There's now no polling any more, but a listener attached to the switch property. This guarantees instant action. And the loop does now only run when blinking is enabled, which saves a few cycles. The interface remains the same. m |