Eden Editor: Trigger
Jump to navigation
Jump to search
Attributes
Info | Development | |||
---|---|---|---|---|
Name | Category | Description | Class | Type |
Variable Name | Trigger Init | Unique system name. Can contain only letters, numbers and underscore. The name is not case sensitive, so 'someName' and 'SOMENAME' are treated as the same variables. | name | String |
Text | Trigger Init | Trigger description. Players can see it in the radio menu when activation is set to 'Radio'. Also visible in tooltip when hovering over the trigger in the editor. | text | String |
Shape | Trigger Transformation | Trigger area shape.
Available options:
|
IsRectangle | Bool |
Size | Trigger Transformation | Trigger area size in meters. | size2 | Array |
Position | Trigger Transformation | World coordinates in meters. X goes from East to West, Y from South to North and Z is height above terrain. | position | Position3D |
Rotation | Trigger Transformation | Rotation in degrees. 0 points to North. | rotation | Number |
Type | Trigger Activation | Trigger type, determines special behaviour upon activation.
Available options:
|
TriggerType | String |
Activation | Trigger Activation | Activation determines objects of which side will activate the trigger area (unless it's a Radio activation, in which case the area is irrelevant).
Available options:
|
ActivationBy | String |
Activation | Trigger Activation | Activation determines which group members will activate the trigger area (unless it's a Radio activation, in which case the area is irrelevant).
Available options:
|
activationByOwner | String |
Activation Type | Trigger Activation | Defines how can objects influence trigger activation.
Available options:
|
activationType | String |
Repeatable | Trigger Activation | Repetition rules. When enabled, the trigger can be activated again once deativated. | repeatable | Bool |
Condition | Trigger Expression | Repeatedly calculated condition, must return boolean expression. When true, the trigger will be activated.
Passed variables are:
|
condition | String |
On Activation | Trigger Expression | Expression executed once the trigger is activated. | onActivation | String |
On Deactivation | Trigger Expression | Expression executed once the trigger is deactivated. | onDeactivation | String |
Timer Type | Trigger Timer | Type of activation timer.
Available options:
|
interuptable | Bool |
Timer Values | Trigger Timer | Timer values in seconds, selected randomly in range from Min to Max, gravitating towards Mid. | timeout | Array in format [min, mid, max] |
Effect Condition | Trigger Effects | Condition for effects to be played, must return boolean expression. | effectCondition | String |
Sound | Trigger Effects | Sound player upon activation. | sound | String |
Voice | Trigger Effects | Sound spoken by the first unit which activated the trigger. | voice | String |
Environment | Trigger Effects | Environment sounds played upon activation. | soundEnvironment | String |
SFX | Trigger Effects | Sound effect played by the trigger upon activation. Repeats as long as the trigger is active. | soundTrigger | String |
Music | Trigger Effects | Music played upon activation. Replaces previously playing music track. | music | String |
UI Overlay | Trigger Effects | User interface overlay shown upon activation. | title | String |