2,736
edits
Red Leader (talk | contribs) (→Extension functions: WIP doc for tileIndex() and tilePath()) |
Red Leader (talk | contribs) (→tileIndex(): Finish docing) |
||
| Line 2,141: | Line 2,141: | ||
=== tileIndex() === | === tileIndex() === | ||
{{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 | |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 | ||
}} | }} | ||