Eden Editor: Trigger
Categories: Eden EditorEden Editor: Asset Types
Attributes
| Info | Development | |||
|---|---|---|---|---|
| Name | Category | Description | Class | Type |
| Variable Name | 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 | Init | Trigger description. Players can see it in the radio menu when its activation is set to 'Radio'. Also visible in tooltip when hovering over the trigger in the editor. | text | String |
| Shape | Transformation | Area shape.
Available options:
|
IsRectangle | Bool |
| Size | Transformation | Area size in meters. | size2 | Array |
| Position | Transformation | World coordinates in meters. X goes from West to East, Y from South to North and Z is height above terrain. | position | Position3D |
| Rotation | Transformation | Local rotation in degrees. X is pitch, Y is roll and Z is yaw. | rotation | Number |
| Type | Activation | Trigger type, determines special behavior upon activation.
Available options:
|
TriggerType | String |
| Activation | Activation | What or who can activate the trigger. Some options further depend on 'Activation Condition'.
Available options:
|
ActivationBy | String |
| Activation | Activation | What or who can activate the trigger. Some options further depend on 'Activation Type'. The available options are specific to the connected trigger owner.
Available options:
|
activationByOwner | String |
| Activation Condition | Activation | Condition of the 'Activation' attribute.
Available options:
|
activationType | String |
| Repeatable | Activation | Repetition rules. When enabled, the trigger can be activated again once deactivated. | repeatable | Bool |
| Condition | Expression | Repeatedly calculated condition, must return boolean expression. When true, the trigger will be activated.
Passed variables are:
|
condition | String |
| On Activation | Expression | Expression executed once the trigger is activated.
Passed variables are:
|
onActivation | String |
| On Deactivation | Expression | Expression executed once the trigger is deactivated.
Passed variables are:
|
onDeactivation | String |
| Timer Type | Timer | Type of activation timer.
Available options:
|
interuptable | Bool |
| Timer Values | 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 | Effects | Condition for effects to be played, must return boolean expression. | effectCondition | String |
| Sound | Effects | Sound played upon activation. | sound | String |
| Voice | Effects | Sound spoken by the first unit which activated the trigger. | voice | String |
| Environment | Effects | Environment sounds played upon activation. | soundEnvironment | String |
| SFX | Effects | Sound effect played by the trigger upon activation. Repeats as long as the trigger is active. | soundTrigger | String |
| Music | Effects | Music played upon activation. Replaces previously playing music track. | music | String |
| UI Overlay | Effects | User interface overlay shown upon activation. | title | String |