Nasal library: Difference between revisions

Jump to navigation Jump to search
→‎tileIndex(): Finish docing
(→‎Extension functions: WIP doc for tileIndex() and tilePath())
(→‎tileIndex(): Finish docing)
Line 2,141: Line 2,141:


=== tileIndex() ===
=== tileIndex() ===
{{WIP}}
{{Nasal doc
{{Nasal doc
|syntax = tileIndex();
|syntax = tileIndex();
|source = {{flightgear file|src/Scripting/NasalPositioned.cxx|l=1720|t=Source}}
|source = {{flightgear file|src/Scripting/NasalPositioned.cxx|l=1720|t=Source}}
|text = Returns the current tile's index as a string. This corresponds to the name of the STG file of the tile. For example, at KSFO, this would be <code>942050</code>.
|text = Returns the index of the tile at the aircraft's current position as a string. This corresponds to the name of the STG file of the tile. For example, at [[KSFO]], this would be <code>942050</code>, corresponding to <tt>''[[$FG_SCENERY]]/Terrain/w130n30/w123n3/942050.stg''</tt>.
|example1 = print(tileIndex()); # print index
|example1 = print(tileIndex()); # print index
}}
}}

Navigation menu