Eden Editor: Trigger: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 73: | Line 73: | ||
* '''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. Strength matters, which means one tank can be in control of an area while ten enemy infantrymen are still present. | * '''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 | * '''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 commands (accessible for player by pressing 0-0 on standard keyboard). Trigger 'Text' will be used as the command title. | ||
| <small><tt>ActivationBy</tt></small> | | <small><tt>ActivationBy</tt></small> | ||
Line 80: | Line 80: | ||
| '''Activation''' | | '''Activation''' | ||
| Trigger Activation | | Trigger Activation | ||
| What or who can activate the trigger. Some options further depend on 'Activation Type'. | | 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: | Available options: | ||
* '''Vehicle''' - Activated when the connected trigger owner (or its vehicle, if the owner is a crew member) satisfies the 'Activation Condition'. | * '''Vehicle''' - Activated when the connected trigger owner (or its vehicle, if the owner is a crew member) satisfies the 'Activation Condition'. | ||
* '''Whole Group''' - Activated when all owner's group members satisfy the 'Activation Condition'. | * '''Whole Group''' - Activated when all owner's group members satisfy the 'Activation Condition'. | ||
* '''Group Leader''' - Activated when leader of the owner's group satisfies the 'Activation Condition'. | * '''Group Leader''' - Activated when the leader of the owner's group satisfies the 'Activation Condition'. | ||
* '''Any Group Member''' - Activated when anyone from the owner's group satisfies the 'Activation Condition'. | * '''Any Group Member''' - Activated when anyone from the owner's group satisfies the 'Activation Condition'. | ||
Line 103: | Line 103: | ||
| '''Repeatable''' | | '''Repeatable''' | ||
| Trigger Activation | | Trigger Activation | ||
| Repetition rules. When enabled, the trigger | | Repetition rules. When enabled, the trigger will fire again upon deactivation. | ||
| <small><tt>repeatable</tt></small> | | <small><tt>repeatable</tt></small> | ||
| [[Bool]] | | [[Bool]] | ||
Line 135: | Line 135: | ||
| Type of activation timer. | | Type of activation timer. | ||
Available options: | Available options: | ||
* '''Countdown''' - Once the conditions are met, the trigger will activate after the specified amount of time | * '''Countdown''' - Once the conditions are met, the trigger will activate after the specified amount of time. | ||
* '''Timeout''' - The trigger's conditions must be satisfied for the entirety of specified amount of time for the trigger to activate. | * '''Timeout''' - The trigger's conditions must be satisfied for the entirety of the specified amount of time for the trigger to activate. | ||
| <small><tt>interuptable</tt></small> | | <small><tt>interuptable</tt></small> | ||
Line 143: | Line 143: | ||
| '''Timer Values''' | | '''Timer Values''' | ||
| Trigger Timer | | Trigger Timer | ||
| Timer values in seconds, selected randomly in range from Min to Max, gravitating towards Mid. | | Timer values in seconds, selected randomly in a range from Min to Max, gravitating towards Mid. | ||
| <small><tt>timeout</tt></small> | | <small><tt>timeout</tt></small> | ||
| [[Array]] in format [min, mid, max] | | [[Array]] in format [min, mid, max] |
Revision as of 10:19, 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'. 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 |