C4 Engine Terathon Software C4 Engine API Documentation

• Utility Library

API Links
Developer Links

LinkTarget::GetFirstLink

Defined in:  C4Link.h
Returns the first link that points to an object.
Prototype

Link<type> *GetFirstLink(voidconst;

Description
The GetFirstLink function returns a pointer to the first Link object that is currently pointing to a link target. The ListElement::Next function can then be used to iterate through all links currently pointing to the same link target. If there are no links currently pointing to a link target, then GetFirstLink returns nullptr.