Triggers
Triggers are much like the triggering aspect of Links, but for when player characters touch a BasePart. Triggers are represented as a tag called Trigger
on a given BasePart.
Setup
Triggers require two attributes of type string
. They are "TriggerMode" for how the Trigger should activate and "TriggerChain" for the Chain script to execute when successfully activated.
The "TriggerMode" attribute has to match a valid mode:
Mode | Functionality |
---|---|
Player | Will trigger when a direct BasePart child of a player character touches the Trigger |
Validators
By default, Triggers don't have any game-specific validation on what and when they can activate on. Thus, on the game developer's end, you need to define the conditions where Triggers can activate. To do this, utilize Validators.