Map Editor: Triggers

Triggers can activate other connected triggers in chained events. Each trigger performs a single action and can trigger a custom script if needed. The custom script can do whatever is supported by the Superfighters Deluxe Script API\_. Though triggers do help with scripts they're a *Lighter* version as they don't need any extra scripting they work on thier own and are easy to use.

### **Aera Trigger**

AreaTrigger: Listens for objects/players entering and leaving the area and activates targeted triggers and script on enter/leave.

Basic Trigger Properties:

Script Method TriggerArgs: - Caller: The calling AreaTrigger of type IObjectTrigger. - Sender: The activating object of type BaseObject. Can be null.

### **ActivateTrigger**

ActivateTrigger: Properties: - Highlight Object: Object to highlight when a player can activate the button trigger.

Basic Trigger Properties: - Activate On Startup: Controls if the trigger should be activated on startup. Default false. - Activate Triggers: Activate selected triggers after this trigger has been activated. - Script Method: Name of the script method to run when this trigger is activated. - Trigger Enabled: If the trigger is enabled.

Script Method TriggerArgs: - Caller: The calling ButtonTrigger of type IObjectTrigger. - Sender: The player activating the button of type IPlayer or the activating trigger of type IObjectTrigger. Can be null.

###

### **Button00(Button Trigger)**

Button00:

Properties: - Delay: Delay before the button can be activated again.

Basic Trigger Properties: - Activate On Startup: Controls if the trigger should be activated on startup. Default false. - Activate Triggers: Activate selected triggers after this trigger has been activated. - Script Method: Name of the script method to run when this trigger is activated. - Trigger Enabled: If the trigger is enabled.

Script Method TriggerArgs: - Caller: The calling ButtonTrigger of type IObjectTrigger. - Sender: The player activating the button of type IPlayer or the activating trigger of type IObjectTrigger. Can be null.

### **ChangeBodyTypeTrigger**

ChangeBodyTypeTrigger:Changes the body type of the targeted objects when activated.

Basic Trigger Properties: - Activate On Startup: Controls if the trigger should be activated on startup. Default false. - Activate Triggers: Activate selected triggers after this trigger has been activated. - Script Method: Name of the script method to run when this trigger is activated. - Trigger Enabled: If the trigger is enabled.

Script Method TriggerArgs: - Caller: The calling ChangeBodyTypeTrigger of type IObjectTrigger. - Sender: The activating trigger of type IObjectTrigger. Can be null.

### **DestroyTrigger**

DestroyTrigger: Destroys the targeted objects when activated.

Basic Trigger Properties: - Activate On Startup: Controls if the trigger should be activated on startup. Default false. - Activate Triggers: Activate selected triggers after this trigger has been activated. - Script Method: Name of the script method to run when this trigger is activated. - Trigger Enabled: If the trigger is enabled.

Script Method TriggerArgs: - Caller: The calling DestroyTrigger of type IObjectTrigger. - Sender: The activating trigger of type IObjectTrigger. Can be null.