Eden Editor: Trigger: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 69: | Line 69: | ||
| What or who can activate the trigger. Some options further depend on 'Activation Condition'. | | What or who can activate the trigger. Some options further depend on 'Activation Condition'. | ||
Available options: | Available options: | ||
* '''None''' - No default activation, only custom condition expression can activate the trigger. | * '''None''' - No default activation, only a custom condition expression can activate the trigger. | ||
* '''Anybody''' - Activated when any object satisfies the 'Activation Condition'. | * '''Anybody''' - Activated when any object satisfies the 'Activation Condition'. | ||
* '''BLUFOR, OPFOR, Independent, Civilian, Game Logic''' - Activated when any object of the given side satisfies the 'Activation Condition'. | * '''BLUFOR, OPFOR, Independent, Civilian, Game Logic''' - Activated when any object of the given side satisfies the 'Activation Condition'. | ||
* '''Seized by BLUFOR, Seized by OPFOR, Seized by Independent''' - Activated when the given side is in control of the area. | * '''Seized by BLUFOR, Seized by OPFOR, Seized by Independent''' - Activated when the given side is in control of the area. Strength matters, which means one tank can be in control of an area while ten enemy infantrymen are still present. | ||
* '''Radio Alpha, Radio Bravo, Radio Charlie, Radio Delta, Radio Echo, Radio Foxtrot, Radio Golf, Radio Hotel, Radio India, Radio Juliet''' - Activated by a player using radio command (accessible for player by pressing 0-0 on standard keyboard). Trigger 'Text' will be used as the command title. | * '''Radio Alpha, Radio Bravo, Radio Charlie, Radio Delta, Radio Echo, Radio Foxtrot, Radio Golf, Radio Hotel, Radio India, Radio Juliet''' - Activated by a player using radio command (accessible for player by pressing 0-0 on standard keyboard). Trigger 'Text' will be used as the command title. | ||
Revision as of 10:15, 10 December 2015
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'. 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 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.
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 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 |