2,736
edits
Red Leader (talk | contribs) (→Extension functions: Doc thisfunc()) |
Red Leader (talk | contribs) (→Extension functions: WIP doc for tileIndex() and tilePath()) |
||
| Line 2,138: | Line 2,138: | ||
test_vec = {}; | test_vec = {}; | ||
debug.dump(stringify_vec(test_vec)); # will throw an error | debug.dump(stringify_vec(test_vec)); # will throw an error | ||
}} | |||
=== tileIndex() === | |||
{{WIP}} | |||
{{Nasal doc | |||
|syntax = tileIndex(); | |||
|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>. | |||
|example1 = print(tileIndex()); # print index | |||
}} | |||
=== tilePath() === | |||
{{WIP}} | |||
{{Nasal doc | |||
|syntax = tileIndex(); | |||
|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>. | |||
|example1 = print(tileIndex()); # print index | |||
}}<!-- | }}<!-- | ||