Arma 3 Scripting

Command in Triggers

setTriggerArea

Also available as Markdown and JSON, or read the original wiki page.

Description

Defines the area monitored by the given trigger. The area could be either rectangular or elliptical.

Note

Just like with a and b dimensions, c dimension will alter area in opposite directions from the trigger position along z axis. Therefore if the trigger position is on the surface, half of the trigger area will be above the surface and half below. To place the whole area above the surface, adjust trigger position (move it up c meters). If c is not specified or <= 0, the trigger's height is considered infinite like 2D triggers.

Syntax

trigger setTriggerArea [a, b, angle, isRectangle, c]

Parameters:

Returns: Nothing

Examples

Example 1

_trigger setTriggerArea [100, 50, 45, false];

Example 2

_trigger setTriggerArea [100, 50, 45, false, 100];

Example 3

_trg = createTrigger ["EmptyDetector", getPos player, false];
_trg setTriggerArea [5, 5, 0, false];
_trg setTriggerActivation ["CIV", "PRESENT", true];
_trg setTriggerStatements ["this", "hint 'Civilian near player'", "hint 'no civilian near'"];

See also

triggerArea · createTrigger · setTriggerActivation · setTriggerStatements · setTriggerText · setTriggerTimeout · setTriggerType · inArea · inAreaArray · triggerInterval · setTriggerInterval · enableSimulation · simulationEnabled