BIS fnc getArea: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \| *([^s][^=]+ call .+) " to " |s1=$1 ")
m (Some wiki formatting)
Line 1: Line 1:
{{RV|type=function
{{RV|type=function


| arma3
|game1= arma3
 
|version1= 1.58
|1.58


|gr1= Geometry
|gr1= Geometry
Line 9: Line 8:
|gr2= Map and Markers
|gr2= Map and Markers


|s1= Extracts area information from trigger, marker, location or array
|descr= Extracts area information from trigger, marker, location or array


| param call [[BIS_fnc_getArea]]
|s1= param call [[BIS_fnc_getArea]]


|p1= param:<blockquote>Could be one of
|p1= param:
* [[Object]] - trigger
* [[Object]] - trigger
* [[String]] - marker
* [[String]] - marker
* [[Location]] - location
* [[Location]] - location
* [[Array]] - array in format [center, distance] or [center, [a, b, angle, rect]] or [center, [a, b, angle, rect, height]]</blockquote>
* [[Array]] - array in format [center, distance] or [center, [a, b, angle, rect]] or [center, [a, b, angle, rect, height]]
|r1=[[Array]] - in format [center, a, b, angle, isRectangle, height]
 
|r1= [[Array]] - in format [center, a, b, angle, isRectangle, height]


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

Revision as of 20:57, 10 June 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:
  • 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