setTriggerArea: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|SETTRIGGERAREA]]
{{Command|= Comments
[[Category:Scripting Commands OFP Elite |SETTRIGGERAREA]]
____________________________________________________________________________________________
[[Category:Scripting Commands ArmA|SETTRIGGERAREA]]


| ofpr |= Game name


<h2 style="color:#000066">'''''trigger'' setTriggerArea ''[a, b, angle, rectangle]'''''</h2>
|1.86|= Game version
____________________________________________________________________________________________


| 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. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| trigger '''setTriggerArea''' [a, b, angle, rectangle] |= Syntax


'''trigger:''' [[Object]]
|p1= trigger: [[Object]] |= Parameter 1


'''[a, b, angle, rectangle]:''' [[Array]]
|p2= [a, b, angle, rectangle]: [[Array]] |= Parameter 2


'''Type of returned value:'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>trigger setTriggerArea [100, 50, 45, [[false]] ]</pre> |= Example 1
____________________________________________________________________________________________


[[Nothing]]
|  |= See also


'''Compatibility:'''
}}


Version 1.86 required.


'''Description:'''
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


Defines the area controlled by the trigger.
<!-- Note Section END -->
</dl>


The area is rectangular or elliptic, the width is 2 * a, the height is 2 * b. It is rotated angle degrees.
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|SETTRIGGERAREA]]
 
[[Category:Scripting Commands OFP Elite |SETTRIGGERAREA]]
'''Example:'''
[[Category:Scripting Commands ArmA|SETTRIGGERAREA]]
 
trigger '''setTriggerArea''' [100, 50, 45, [[false]] ]

Revision as of 00:32, 2 August 2006

Hover & click on the images for description

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.
Groups:
Uncategorised

Syntax

Syntax:
trigger setTriggerArea [a, b, angle, rectangle]
Parameters:
trigger: Object
[a, b, angle, rectangle]: Array
Return Value:
Nothing

Examples

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

Additional Information

See also:
See also needed

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