BIS fnc getArea: Difference between revisions

From Bohemia Interactive Community
m (Text replacement - "= <code>([^<{]+)<\/code>" to "= <sqf>$1</sqf>")
(Added info about this not returning a position in 3D)
Tag: Reverted
Line 17: Line 17:
* [[Location]] - location
* [[Location]] - location
* [[Array]] - array in format [center, distance] or [center, [a, b, angle, rect]] or [center, [a, b, angle, rect, height]]
* [[Array]] - array in format [center, distance] or [center, [a, b, angle, rect]] or [center, [a, b, angle, rect, height]]
{{Feature|informative|Be aware that the {{hl|height}} value is ignored.}}


|r1= [[Array]] - in format [center, a, b, angle, isRectangle, height]
|r1= [[Array]] - in format [center, a, b, angle, isRectangle, height]

Revision as of 17:30, 24 September 2025

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]]
Be aware that the height value is ignored.
Return Value:
Array - in format [center, a, b, angle, isRectangle, height]

Examples

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

Additional Information

See also:
createTrigger createMarker setTriggerArea setMarkerSize triggerArea markerSize inArea inAreaArray BIS_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