BIS fnc getArea: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki)
 
(Created page with " {{Function|= Comments ____________________________________________________________________________________________ | arma3 |= Game name |1.58|= Game version _______________...")
Line 5: Line 5:
| arma3 |= Game name
| arma3 |= Game name


|1.00|= Game version
|1.58|= Game version
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| Extracts area information from trigger, marker, location or array|= Description
Author:
Killzone_Kid
 
Description:
Extracts area information from trigger, marker, location or array
 
Parameter(s):
_this:
OBJECT - trigger
STRING - marker
ARRAY - array in format [center, distance] or [center, [a, b, angle, rect]] or [center, [a, b, angle, rect, height]]
LOCATION - location
 
Returns:
ARRAY in format [center, a, b, angle, isRectangle, height]
 
*/
 
// is trigger
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_getArea]]; --> |= Syntax
| param call [[BIS_fnc_getArea]] |= Syntax
|p1= |= Parameter 1


| |= Return value
|p1= param: [[Object]] - trigger, [[String]] - marker, [[Location]] - location or [[Array]] - array in format [center, distance] or [center, [a, b, angle, rect]] or [center, [a, b, angle, rect, height]]|=
| [[Array]] - in format [center, a, b, angle, isRectangle, height] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


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


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


}}
}}

Revision as of 17:53, 22 March 2017


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: Object - trigger, String - marker, Location - location or 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 = [_trigger, player] 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