C4 Engine
C4 Engine API Documentation

Controller::DeactivateController

Defined in:  C4Controller.h
Called when the trigger node that activated a controller is deactivated.
Prototype

virtual void DeactivateController(Node *initiator, Node *trigger);

Parameters
initiator The node that deactivated the trigger. This can be nullptr.
trigger A pointer to the node that caused the controller to be deactivated. This can be nullptr.
Description
The DeactivateController function is called when a Trigger node that previously activated the controller becomes deactivated. A controller subclass may perform whatever action is appropriate in response to the deactivation.

The default implementation performs no action, so any override of the DeactivateController function does not need to call the base class counterpart.
See Also

Controller::ActivateController

World::ActivateTriggers

Trigger