BIS fnc isInsideArea: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ :\\\-\/|()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}") |
Lou Montana (talk | contribs) m (Text replacement - "\|gr([0-9]+) = " to "|gr$1= ") |
||
Line 5: | Line 5: | ||
|1.00 | |1.00 | ||
|gr1 = Geometry | |gr1= Geometry | ||
| Detects whether a position is within a square area of given size about center. | | Detects whether a position is within a square area of given size about center. |
Revision as of 12:42, 11 April 2021
Description
- Description:
- Description needed
- Execution:
- call
- Groups:
- Geometry
Syntax
- Syntax:
- Syntax needed
- Parameters:
- center: Array - Center Position of area to check
- size: Array - [x,y] offsets from center
- position: Array - Position to check
- Return Value:
- Return value needed
Examples
- Example 1:
// Check an area, centered on the player that is 10m wide and 10m tall _size = [5, 5]; _checkPos = getPos player; _inArea = [_checkPos, _size, _checkPos] call BIS_fnc_isInsideArea;
Additional Information
- See also:
- createTrigger createMarker setTriggerArea setMarkerSize triggerArea markerSize BIS_fnc_inAngleSector
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