setTriggerArea: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 23: Line 23:
'''Description:'''
'''Description:'''


Defines the area controlled by the trigger. The area is rectangular or elliptic, the width is 2 * a, the height is 2 * b. It is rotated angle degrees.
Defines the area controlled by the trigger.
 
The area is rectangular or elliptic, the width is 2 * a, the height is 2 * b. It is rotated angle degrees.
 


'''Example:'''
'''Example:'''


trigger '''setTriggerArea''' [100, 50, 45, false]
trigger '''setTriggerArea''' [100, 50, 45, false]

Revision as of 22:15, 4 July 2006


trigger setTriggerArea [a, b, angle, rectangle]


Operand types:

trigger: Object

[a, b, angle, rectangle]: Array

Type of returned value:

Nothing

Compatibility:

Version 1.86 required.

Description:

Defines the area controlled by the trigger.

The area is rectangular or elliptic, the width is 2 * a, the height is 2 * b. It is rotated angle degrees.


Example:

trigger setTriggerArea [100, 50, 45, false]