BIS fnc getArea: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl>" to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...)
Line 1: Line 1:
{{Function|Comments=
{{Function


| arma3 |Game name=
| arma3


|1.58|Game version=
|1.58


|gr1 = Geometry |GROUP1=
|gr1 = Geometry


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


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


| param call [[BIS_fnc_getArea]] |SYNTAX=
| param call [[BIS_fnc_getArea]]


|p1= param:<blockquote>Could be one of
|p1= param:<blockquote>Could be one of
Line 17: Line 17:
* [[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>|PARAMETER1=
* [[Array]] - array in format [center, distance] or [center, [a, b, angle, rect]] or [center, [a, b, angle, rect, height]]</blockquote>
| [[Array]] - in format [center, a, b, angle, isRectangle, height] |RETURNVALUE=
| [[Array]] - in format [center, a, b, angle, isRectangle, height]


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


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


}}
}}

Revision as of 23:02, 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


Bottom Section