DTree Node.GetParentNode

From GMod Wiki

Jump to: navigation, search
Function
Syntax DTree_Node:GetParentNode( )
Description:
Returns the nodes's parent node.
Returns: DTree_Node
In Object: DTree_Node
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=DTree Node.GetParentNode]DTree Node.GetParentNode [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionCreates some nodes and gets the parent of the last one. In this case 'cnode' = 'gcnode_parent'.
Used onNewerClient.png
Code
local node = ctrl:AddNode( "1" )
local cnode = node:AddNode( "2" )
local gcnode = cnode:AddNode( "3" )
 
local gcnode_parent = gcnode:GetParentNode()
 
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox