Eden Editor: Trigger

From Bohemia Interactive Community
Revision as of 10:06, 10 December 2015 by Str (talk | contribs)
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:

  • Ellipse
  • Rectangle
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:

  • None - No other effects except of those defined by 'On Activation' expression.
  • Guarded by BLUFOR, Guarded by OPFOR, Guarded by Independent - The trigger position becomes a point to be guarded by the given side. Groups with a 'Guard' waypoint will protect all guard points in the scenario, prioritizing them by distance and order in which they were placed (the first placed is the most important).
  • Switch - Meant to work with a waypont linked to the trigger using 'Set Waypoint Activation' connection. Once activated, the trigger will force the waypoint to be skipped. Especially useful for 'Hold' or 'Guard' waypoint types, which don't complete automatically.
  • End #1, End #2, End #3, End #4, End #5, End #6 - Complete the scenario succesfully.
  • Lose - Fail the scenario.
TriggerType String
Activation Trigger Activation What or who can activate the trigger. Some options further depend on 'Activation Condition'.

Available options:

  • None - No default activation, only custom condition expression can activate the trigger.
  • 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'.
  • Seized by BLUFOR, Seized by OPFOR, Seized by Independent - Activated when the given side is in control of the area. Strenght 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.
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:

  • 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'.
  • Group Leader - Activated when 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'.
activationByOwner String
Activation Condition Trigger Activation Confition of 'Activation' attribute.

Available options:

  • Present - Activated when objects are in the area.
  • Not Present - Activated when objects are not in the area.
  • Detected by BLUFOR, Detected by OPFOR, Detected by Independent, Detected by Civilian - Activated when objects are in the area and are discovered by the given side.
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:

  • this - boolean value of activation condition
  • thisList - list of all objects in trigger area, based on 'Activation'
  • thisTrigger - trigger object
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:

  • Countdown - Once the conditions are met, the trigger will activate after the specified amount of time has elapsed.
  • Timeout - The trigger's conditions must be satisfied for the entirety of specified amount of time for the trigger to activate.
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