// Create a trigger for entity events // Triggers are used to define when and how certain events should fire
// Example of creating a trigger constentityTrigger: Trigger = { eventName:"custom:on_player_interact", };
// Example usage in entity components or behavior functionsetupEntityTrigger() { // Triggers are typically used in entity definitions or components // to specify when certain events should be triggered
Represents a trigger for firing an event.
Example: createTrigger.ts