setTriggerArea

From Bohemia Interactive Community
Jump to: navigation, search
Introduced in Armed Assault version 1.00

Click on the images for descriptions

Introduced in

Game:
Armed Assault
Version:
1.00

Description

Description:
Defines the area controlled by the trigger.

The area is either rectangular or elliptical, the width is 2 * xrad, the height is 2 * yrad.

It is rotated angle degrees.

Syntax

Syntax:
trigger setTriggerArea [xrad, yrad, angle, rectangle]
Parameters:
trigger: Object
[xrad, yrad, angle, rectangle]: Array
xrad: Number - horizontal(x) radius (or half the width of rectangle)
yrad: Number - vertical(y) radius (or half the height of rectangle)
angle: Number - rotational in degrees
rectangle: Boolean - true if rectangle)
Return Value:
Nothing

Examples

Example 1:
_trigger setTriggerArea [100, 50, 45, false ]

Additional Information

Multiplayer:
-
See also:
triggerArea, createTrigger,setTriggerActivation, setTriggerStatements, setTriggerText, setTriggerTimeout, setTriggerType

Notes

Notes


Only post proven facts here. Use the talk page or the forums for discussions.


Notes

Bottom Section

Personal tools
Google Ads