C4 Engine Terathon Software C4 Engine API Documentation

• Controller System

API Links
Developer Links

Controller::Deactivate

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

virtual void Deactivate(Node *trigger);

Parameters
trigger A pointer to the node that caused the controller to be activated. This can be nullptr.
Description
The Deactivate 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 Deactivate function does not need to call the base class counterpart.
See Also

Controller::Activate

World::ActivateTriggers

Trigger