BIS fnc getArea: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision imported: BIS Functions update 2/7)
m (template:command argument fix)
Line 8: Line 8:
____________________________________________________________________________________________
____________________________________________________________________________________________


| 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=


|p1= param:<blockquote>Could be one of
|p1= param:<blockquote>Could be one of
Line 18: Line 18:
* [[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]]</blockquote>|=
| [[Array]] - in format [center, a, b, angle, isRectangle, height] |= Return value
| [[Array]] - in format [center, a, b, angle, isRectangle, height] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 24: Line 24:
____________________________________________________________________________________________
____________________________________________________________________________________________


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


}}
}}

Revision as of 11:28, 7 April 2019


Hover & click on the images for description

Description

Description:
Extracts area information from trigger, marker, location or array
Execution:
call
Groups:
Uncategorised

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