|
||
BOS_NODE FindChild(string name);
string name; // A System.String object
|
|
|||
Synopsis |
using SilverSharp;
The FindChild method searches the block entity for a child with the name specified. The search is case-insensitive and searches only immediate children (not all descendents).
|
|
||
Parameters |
name is a string containing the name of the child entity you wish to find.
|
|
||
Return Value |
FindChild returns a SilverSharp.BOS_NODE object if successful, or null otherwise.
|
|
||
Remarks |
The inherited IsEmpty method can be used to test the result.
|
|
||
See Also |
BLOCK_NODE, Entity types, IsEmpty
|
|
||
Example |
The following code searches a BLOCK_NODE (assumed to be valid) for a child called 'door':
|
|