triggerArea: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Lou Montana (talk | contribs) m (Add since template usage) |
||
Line 5: | Line 5: | ||
|1.00|Game version= | |1.00|Game version= | ||
|arg= global|Multiplayer Arguments= | |arg= global|Multiplayer Arguments= | ||
Line 10: | Line 11: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Returns currently monitored trigger area. Since Arma 3 v1.59.135137, the command returns 3rd dimension for the monitored area. If height is not set, the value for it would be -1 | | Returns currently monitored trigger area. Since Arma 3 v1.59.135137, 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.}} |DESCRIPTION= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| '''triggerArea''' trigger |SYNTAX= | | '''triggerArea''' trigger |SYNTAX= | ||
|p1= trigger: [[Object]] |PARAMETER1 | |p1= trigger: [[Object]] |PARAMETER1= | ||
| [[Array]] in format [a, b, angle, isRectangle, c], where: | | [[Array]] in format [a, b, angle, isRectangle, c], where: | ||
Line 30: | Line 24: | ||
* angle | * angle | ||
* isRectangle | * isRectangle | ||
* c - trigger area Z size / 2 | * c - trigger area Z size / 2 {{since|arma3|1.59.135137|y}} |RETURNVALUE= | ||
|x1= <code>_area = [[triggerArea]] sensor1; | |x1= <code>_area = [[triggerArea]] sensor1; {{cc|result is [200, 120, 45, false, -1];}}</code> |EXAMPLE1= | ||
| | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[setTriggerArea]], [[inArea]], [[inAreaArray]]|SEEALSO= | | [[setTriggerArea]], [[inArea]], [[inAreaArray]]|SEEALSO= | ||
}} | }} | ||
Line 54: | Line 44: | ||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]] | ||
Revision as of 21:16, 23 December 2020
Description
- Description:
- Returns currently monitored trigger area. Since Arma 3 v1.59.135137, the command returns 3rd dimension for the monitored area. If height is not set, the value for it would be -1.
- Groups:
- Triggers
Syntax
- Syntax:
- triggerArea trigger
- Parameters:
- trigger: Object
- Return Value:
- Array in format [a, b, angle, isRectangle, c], where:
- a - trigger area X size / 2
- b - trigger area Y size / 2
- angle
- isRectangle
- c - trigger area Z size / 2 Template:since
Examples
- Example 1:
_area = triggerArea sensor1; // result is [200, 120, 45, false, -1];
Additional Information
- See also:
- setTriggerAreainAreainAreaArray
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