Eden Editor: Trigger
Categories: Eden EditorEden Editor: Asset Types
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 | What or who can activate the trigger. Some options further depend on 'Activation Condition'.
Available options:
|
ActivationBy | String |
| Activation | Trigger Activation | What or who can activate the trigger. Some options further depend on 'Activation Type'. The available options are specific to connected trigger owner.
Available options:
|
activationByOwner | String |
| Activation Condition | Trigger Activation | Confition of 'Activation' attribute.
Available options:
|
activationType | String |
| Repeatable | Trigger Activation | Repetition rules. When enabled, the trigger will fire again upon deactivation. | 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.
Passed variables are the same as in 'Condition' expression. |
onActivation | String |
| On Deactivation | Trigger Expression | Expression executed once the trigger is deactivated.
Passed variables are the same as in 'Condition' expression. |
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 a 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 |