2,732
edits
Red Leader (talk | contribs) (Remove WIP notice) |
Red Leader (talk | contribs) (Add commit and version to read_airport_properties()) |
||
Line 190: | Line 190: | ||
{{Nasal doc | {{Nasal doc | ||
|syntax = io.read_airport_properties(icao, fname[, target]); | |syntax = io.read_airport_properties(icao, fname[, target]); | ||
|version = 2.4 | |||
|commit = {{fgdata commit|d4fb11|t=commit}} | |||
|text = Loads an airport-related XML file. Paths will be concatenated in the following form: <tt>''[[$FG_SCENERY]]/Airports/'''''i'''''/'''''c'''''/'''''a'''''/'''''icao'''''.'''''fname'''''.xml''</tt>. Returns the data as a <code>props.Node</code> object or <code>'''nil'''</code> on error. Note that the file ''must'' be in the [[PropertyList XML files|PropertyList]] format, or else the function will fail. | |text = Loads an airport-related XML file. Paths will be concatenated in the following form: <tt>''[[$FG_SCENERY]]/Airports/'''''i'''''/'''''c'''''/'''''a'''''/'''''icao'''''.'''''fname'''''.xml''</tt>. Returns the data as a <code>props.Node</code> object or <code>'''nil'''</code> on error. Note that the file ''must'' be in the [[PropertyList XML files|PropertyList]] format, or else the function will fail. | ||
|param1 = icao | |param1 = icao |