Trigger Component and Triggerable Classes
This page guides you through creating a new Scene Graph component named trigger_component. This component triggers actions on entities that have a Scene Graph component that implements the triggerable interface. The trigger_component provides agents a way to interact with Scene Graph through a volume_device. When an agent enters or exits the volume_device, the corresponding AgentEnteredEvent and AgentExitedEvent is signaled and corresponding callbacks are called to perform actions on Scene Graph components and entities.
In the following image, the white pedestal on the ground is a Scene Graph entity with the trigger_component and an invisible volume_device around the pedestal.

When the player steps on the pedestal, the trigger_component triggers the two lights farthest to the right.
You're reading a preview
The full reference is free for BrainDeadGuild Discord members — sign in to read it all, or open the original at the source.
Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.