Triggers

From Divinity Engine Wiki
Jump to: navigation, search

Description

For descriptions of the available trigger types, see Triggers. For trigger visualization options, see View Options.


Triggers

TemplateType Trigger AiSeeder.png Ai Seeder

Ai seeders are points from which the AI navigation mesh is created when generating the AI grid. Make sure to place AI seeders within each self-contained area.


TemplateType Trigger Start.png Start Point

Start point triggers decide where player characters spawn after character creation.


TemplateType Trigger Region.png Region Trigger

Region triggers allow you to associate a name with a particular region of a level. More importantly, they ensure that the camera cannot travel outside this trigger, and that the surroundings are blacked out.


TemplateType Trigger CameraLocking.png Camera Lock Trigger

Camera lock triggers are similar to region triggers, but only block the camera from moving outside its bounds.


TemplateType Trigger Stats.png Stats Trigger

A Stats trigger sets the level of characters and items that do not have a level override (i.e., their level is -1) within its bounds.


TemplateType Trigger Point.png Point Trigger

A Point Trigger denotes a particular position in the world. It is often used from scripts to play effects, to spawn enemies, to make characters walk to, etc. If you wish to teleport players to a location, a Teleport Trigger is a better choice.


TemplateType Trigger Teleport.png Teleport Trigger

A Teleport Trigger is the same as a point trigger, but it has an extra propery in the side bar called "Camera Angle". This angle indicates where the camera will be after you teleport players to it. This prevents the automatic camera positioning showing a blind wall or the staircase you just came down from after arriving. An arrow gizmo next to the trigger shows the direction at which the camera will point based on the angle you entered.


TemplateType Trigger Atmosphere.png Atmosphere Trigger

Atmosphere triggers can be used to set the default atmosphere for an area, and to also specify additional atmospheres that can be switched to via Osiris or behaviour script.


TemplateType Trigger Cull.png Cull Trigger

A cull trigger hides objects outside its bounds when it the player's camera is inside that trigger.


TemplateType Trigger AiSeeder.png AiSeeder Trigger

An AiSeeder is a point from which the walkable areas on the AI grid will be calculated.


TemplateType Trigger PointSound.png PointSound Trigger

A point at which a sound is played. You can either specify the sound resource name that should be played automatically when the player comes nearby, or you can play any sound at that position from [[Osiris/API/PlaySound|Osiris] or behaviour script.


TemplateType Trigger MusicVolume.png MusicVolume Trigger [1]

Sets the music volume in an area.


TemplateType Trigger SoundVolume.png SoundVolume Trigger [1]

Sets the sound volume in an area.


TemplateType Trigger Region.png Region Trigger

Creates a region separate from its surroundings, which can lock the camera inside it and block vision.


TemplateType Trigger Region.png SecretRegion Trigger


TemplateType Trigger CameraLocking.png CameraLocking Trigger


TemplateType Trigger Event.png Event Trigger

A trigger that broadcasts an event when entered or exited. These triggers are automatically registered for all characters (player or not) and items in the game.

TemplateType Trigger Spectator.png Spectator Trigger


TemplateType Trigger CrimeArea.png CrimeArea Trigger


TemplateType Trigger CrimeRegion.png CrimeRegion Trigger


TemplateType Trigger AiSeeder.png AIHintArea Trigger

An AIHintArea can be used to define a location in which an AI-controlled character should try to stay.


TemplateType Trigger Stats.png StatsArea [1]

Sets the default level override of characters and items in an area for all characters and items whose level is set to -1.

Notes

[1] This is a polygon trigger, see below for how to edit these triggers' bounds.


Editing Trigger Shapes

There are 2 ways to edit trigger shapes:


Editing Shape Bounds

EditingShapeBounds.png


Editing Control Points

EditingControlPoints.png


View Options

View Gizmos

The View Gizmos button (Ctrl+L) toggles the visibility of gizmos for all trigger types. To toggle the gizmos for individual trigger types, see View Gizmo Type


View Gizmo Type

ViewTriggerGizmoTypes.png

The Show Gizmo Type submenu allows you to toggle gizmos by trigger type


View Trigger Shapes

ViewTriggerShapes.png

The View Trigger Shapes toggle allows you to toggle visualization of trigger bounds


View Trigger Shapes (Ctrl+T) toggles the visualization of trigger bounds in your level.


TriggerShapes.png

4 triggers visualized: a camera lock trigger (poly trigger), a region trigger (box trigger) and 2 player start triggers with their direction