Howto:Extend Nasal: Difference between revisions

Jump to navigation Jump to search
m
Line 105: Line 105:
So, after rebuilding the FlightGear binary, whenever you call the new "cool" API function, it will always return a "cool" string, which you could for example print out using a script like the following:
So, after rebuilding the FlightGear binary, whenever you call the new "cool" API function, it will always return a "cool" string, which you could for example print out using a script like the following:


#cooltest.nas (to be saved in $FG_ROOT/Nasal)
  var result=cool();
  var result=cool();
  print(result);
  print(result);
2,561

edits

Navigation menu