Howto:Write simple scripts in Nasal: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
No edit summary
mNo edit summary
Line 73: Line 73:


This listens for the fdm-initialized property to be set (this will happen when the sim has started up), and starts our convertTemp function when that happens.
This listens for the fdm-initialized property to be set (this will happen when the sim has started up), and starts our convertTemp function when that happens.
'''Finishing up'''


As an "exercise for the reader" (I always hate those!) you should make the script also convert the temperature values for the second engine.
As an "exercise for the reader" (I always hate those!) you should make the script also convert the temperature values for the second engine.


Now you should be able to take advantage of the more detailed information available about nasal here on the wiki, at www.plausible.org/nasal , and also other pre-existing nasal scripts which can be useful to borrow from!
Now you should be able to take advantage of the more detailed information available about nasal here on the wiki, at [http://www.plausible.org/nasal www.plausible.org/nasal] , and also other pre-existing nasal scripts which can be useful to borrow from.
57

edits

Navigation menu