Howto:Extend Nasal: Difference between revisions

Jump to navigation Jump to search
m
mNo edit summary
Line 87: Line 87:
   };
   };


Once you have made these modifications, you can simply invoke your new function, of course it will not yet do anything useful, though.
Once you have made these modifications and rebuilt FlightGear, you can simply invoke your new function, of course it will not yet do anything useful, though:
 
#cooltest.nas
cool();


So, in order to make it slightly more interesting, we are going to change the return statement to return something else, instead of nil:
So, in order to make it slightly more interesting, we are going to change the return statement to return something else, instead of nil:
2,561

edits

Navigation menu