TreeItem FindParent() Method

Retrieve the ancestor TreeItem object, given the ancestor's TS_ID.

Function Signature

 TreeItem FindParent( id )

Parameters

Parameter Type Description

id

int

TS_ID of this item's ancestor TreeItem.

Return

Type Description

TreeItem

TreeItem object representing the ancestor. If the parent is not found, returns null. Use is_var_null() to check for null.

Technical Details

SBM ModScript version: 11.3.

Notes

Searches the ancestors of this TreeItem for a matching item.

Related Topics

TreeItem