BIS fnc getArea: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Function|Comments=
{{Function|Comments=
____________________________________________________________________________________________


| arma3 |Game name=
| arma3 |Game name=
Line 9: Line 8:


|gr2 = Map and Markers |GROUP2=
|gr2 = Map and Markers |GROUP2=
____________________________________________________________________________________________


| Extracts area information from trigger, marker, location or array|DESCRIPTION=
| Extracts area information from trigger, marker, location or array|DESCRIPTION=
____________________________________________________________________________________________


| param call [[BIS_fnc_getArea]] |SYNTAX=
| param call [[BIS_fnc_getArea]] |SYNTAX=
Line 22: Line 19:
* [[Array]] - array in format [center, distance] or [center, [a, b, angle, rect]] or [center, [a, b, angle, rect, height]]</blockquote>|PARAMETER1=
* [[Array]] - array in format [center, distance] or [center, [a, b, angle, rect]] or [center, [a, b, angle, rect, height]]</blockquote>|PARAMETER1=
| [[Array]] - in format [center, a, b, angle, isRectangle, height] |RETURNVALUE=
| [[Array]] - in format [center, a, b, angle, isRectangle, height] |RETURNVALUE=
____________________________________________________________________________________________


|x1= <code>_area = [<nowiki/>[[player]], 100] [[call]] [[BIS_fnc_getArea]];</code> |EXAMPLE1=  
|x1= <code>_area = [<nowiki/>[[player]], 100] [[call]] [[BIS_fnc_getArea]];</code> |EXAMPLE1=  
____________________________________________________________________________________________


| [[createTrigger]], [[createMarker]], [[setTriggerArea]], [[setMarkerSize]], [[triggerArea]], [[markerSize]], [[inArea]], [[inAreaArray]], [[BIS_fnc_inTrigger]] |SEEALSO=
| [[createTrigger]], [[createMarker]], [[setTriggerArea]], [[setMarkerSize]], [[triggerArea]], [[markerSize]], [[inArea]], [[inAreaArray]], [[BIS_fnc_inTrigger]] |SEEALSO=

Revision as of 00:11, 17 January 2021

Hover & click on the images for description

Description

Description:
Extracts area information from trigger, marker, location or array
Execution:
call
Groups:
GeometryMap and Markers

Syntax

Syntax:
param call BIS_fnc_getArea
Parameters:
param:

Could be one of

  • Object - trigger
  • String - marker
  • Location - location
  • Array - array in format [center, distance] or [center, [a, b, angle, rect]] or [center, [a, b, angle, rect, height]]
Return Value:
Array - in format [center, a, b, angle, isRectangle, height]

Examples

Example 1:
_area = [player, 100] call BIS_fnc_getArea;

Additional Information

See also:
createTriggercreateMarkersetTriggerAreasetMarkerSizetriggerAreamarkerSizeinAreainAreaArrayBIS_fnc_inTrigger

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