BIS_fnc_isInsideArea

From Bohemia Interactive Community
Jump to navigation Jump to search
Introduced with Arma 3 version 1.00
  

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.00

Description

Description:
Detects whether a position is within a square area of given size about center.

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

Execution:
call
Multiplayer:
-
See also:
createTrigger createMarker setTriggerArea setMarkerSize triggerArea markerSize

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section