I'm working with the PC-9M/lights.nas file and noted this line:
- Code: Select all
beacon_switch = props.globals.getNode("controls/switches/beacon", 2);
I found the getnode() definition here: http://wiki.flightgear.org/Nasal_library/props#getNode.28.29
getNode()
props.Node.getNode(rel_path[, create]);
Returns a subnode as another props.Node instance.
rel_path
Relative path to the subnode as a string.
create
If 1 (true), the node will be created if it does not exist. If 0 (false) and the node does not exist, the function will return nil. Default to 0 (false).
What does the parameter "2" provide?
Thanks in advance,
Eric