Arma 3 Scripting

triggerArea

  • Global argument
  • Arma 3 v0.50
  • First in Arma 2 v1.00

Command · Markdown · JSON · original wiki page

Description

Returns currently monitored trigger area. Since Arma 3 v1.60, the command returns 3rd dimension for the monitored area. If height is not set, the value for it would be -1.

Important

The trigger could be local or remote but the result returned by this command will be for the trigger area set up locally on the client that executed the command. See createTrigger for more info.

Syntax

triggerArea trigger

Parameters:

Returns: Array with [a, b, angle, isRectangle, c]

Examples

Example 1

_area = triggerArea sensor1; // result is [200, 120, 45, false, -1];

See also

setTriggerArea · inArea · inAreaArray