C4 Engine Terathon Software C4 Engine API Documentation

• World Manager

API Links
Developer Links

Node::GetConnectedNode

Defined in:  C4Node.h
Returns the connected node with a particular key.
Prototype

Node *GetConnectedNode(const ConnectorKey& key) const;

Parameters
key The key value of the connector.
Description
The GetConnectedNode function searches for a connector having a key matching the key parameter and, if such a connector is found, returns the node to which it connects. If there is no connector with the matching key, or the connector exists but is not connected to another node, then the return value is nullptr.
See Also

Node::SetConnectedNode

Node::AddConnector

Node::GetHub