BIS fnc isInsideArea: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " {{Function|Comments=" to "{{Function|Comments=") |
Lou Montana (talk | contribs) m (Text replacement - "<br />" to "<br>") |
||
Line 16: | Line 16: | ||
|p3= position: [[Array]] - [[Position]] to check |= | |p3= position: [[Array]] - [[Position]] to check |= | ||
| [[Boolean]] - true when position is in area, false otherwise<br | | [[Boolean]] - true when position is in area, false otherwise<br> | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 11:43, 19 March 2020
Description
- Description:
- Detects whether a position is within a square area of given size about center.
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- [center, size, position ] call BIS_fnc_isInsideArea
- Parameters:
- center: Array - Center Position of area to check
- size: Array - [x,y] offsets from center
- position: Array - Position to check
- Return Value:
- Boolean - true when position is in area, false otherwise
____________________________________________________________________________________________
Examples
- Example 1:
_center = getPos player; _size = [ 5, 5 ]; _checkPos = getPos player; //Check an area, centered on the player that is 10m wide and 10m tall _inArea = [ _center, _size, _checkPos ] call BIS_fnc_isInsideArea;
Additional Information
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