C4 Engine
C4 Engine API Documentation

Force::GetTargetField

Defined in:  C4Forces.h
Returns the field to which a force is assigned.
Prototype

Field *GetTargetField(voidconst;

Description
The GetTargetField function returns the Field node to which a force is assigned. If the force is not assigned to a field, then the return value is nullptr.
See Also

Field::GetForce

Field::SetForce