setTriggerArea: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (removed unnecessary bracket)
m (see also)
Line 31: Line 31:
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[triggerArea]], [[createTrigger]], [[setTriggerActivation]], [[setTriggerStatements]], [[setTriggerText]], [[setTriggerTimeout]], [[setTriggerType]], [[inArea]]  |= See also
| [[triggerArea]], [[createTrigger]], [[setTriggerActivation]], [[setTriggerStatements]], [[setTriggerText]], [[setTriggerTimeout]], [[setTriggerType]], [[inArea]], [[inAreaArray]]  |= See also


}}
}}

Revision as of 08:06, 31 January 2017

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
Defines the area monitored by the given trigger. The area could be either rectangular or elliptical. Since Arma 3 v1.59.135137 it is possible to define 3 dimensional area to monitor by specifying extra param for the area height (see pic).

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 area considered infinitely tall, like in old triggers.
Groups:
Uncategorised

Syntax

Syntax:
trigger setTriggerArea [a, b, angle, isRectangle, c]
Parameters:
trigger: Object - object of the type "EmptyDetector"
[a, b, angle, isRectangle, c]: Array
a: Number - trigger area X size / 2, in meters
b: Number - trigger area Y size / 2, in meters
angle: Number - trigger area rotation in degrees
isRectangle: Boolean - true if rectangle
c (Optional): Number - trigger area Z size / 2, in meters         (Since Arma 3 v1.59.135137)
Return Value:
Nothing
setTriggerArea.jpg

Examples

Example 1:
_trigger setTriggerArea [100, 50, 45, false];
Example 2:
Possible since Arma 3 v1.59.135137:_trigger setTriggerArea [100, 50, 45, false, 100];

Additional Information

See also:
triggerAreacreateTriggersetTriggerActivationsetTriggerStatementssetTriggerTextsetTriggerTimeoutsetTriggerTypeinAreainAreaArray

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note


Notes

Bottom Section