Eden Editor: Trigger

From Bohemia Interactive Community
Revision as of 17:11, 8 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
  • Guarded by BLUFOR
  • Guarded by OPFOR
  • Guarded by Independent
  • Switch
  • End #1
  • End #2
  • End #3
  • End #4
  • End #5
  • End #6
  • Lose
TriggerType String
Activation Trigger Activation Activation determines objects of which side will activate the trigger area (unless it's a Radio activation, in which case the area is irrelevant).

Available options:

  • None
  • BLUFOR
  • OPFOR
  • Independent
  • Civilian
  • Game Logic
  • Anybody
  • Radio Alpha
  • Radio Bravo
  • Radio Charlie
  • Radio Delta
  • Radio Echo
  • Radio Foxtrot
  • Radio Golf
  • Radio Hotel
  • Radio India
  • Radio Juliet
  • Seized by BLUFOR
  • Seized by OPFOR
  • Seized by Independent
ActivationBy String
Activation Trigger Activation Activation determines which group members will activate the trigger area (unless it's a Radio activation, in which case the area is irrelevant).

Available options:

  • Vehicle
  • Whole Group
  • Group Leader
  • Any Group Member
activationByOwner String
Activation Type Trigger Activation Defines how can objects influence trigger activation.

Available options:

  • Present
  • Not Present
  • Detected by BLUFOR
  • Detected by OPFOR
  • Detected by Independent
  • Detected by Civilian
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 trigger conditions
  • thisList - list of all objects in trigger area
  • thisTrigger - the trigger object
condition String
On Activation Trigger Expression Expression executed once the trigger is activated. onActivation String
On Deactivation Trigger Expression Expression executed once the trigger is deactivated. 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