Nasal library: Difference between revisions

Jump to navigation Jump to search
→‎tilePath(): Finish docing
(→‎tileIndex(): Finish docing)
(→‎tilePath(): Finish docing)
Line 2,149: Line 2,149:


=== tilePath() ===
=== tilePath() ===
{{WIP}}
{{Nasal doc
{{Nasal doc
|syntax = tileIndex();
|syntax = tilePath();
|source = {{flightgear file|src/Scripting/NasalPositioned.cxx|l=1712|t=Source}}
|source = {{flightgear file|src/Scripting/NasalPositioned.cxx|l=1712|t=Source}}
|text = Returns the current tile's folder and subfolder as a string. For example, at KSFO, this would be <code>w130n30/w123n3</code>, corresponding to <tt>''[[$FG_SCENERY]]/Terrain/w130n30/w123n3''</tt>.
|text = Returns the base path of the tile at the aircraft's current position as a string. For example, at KSFO, this would be <code>w130n30/w123n3</code>, corresponding to <tt>''[[$FG_SCENERY]]/Terrain/w130n30/w123n3''</tt>.
|example1 = print(tileIndex()); # print index
|example1 = print(tilePath()); # print path
}}<!--
}}<!--


Navigation menu