BIS fnc isPosBlacklisted: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "|= Game version" to "|Game version=") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(28 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=function | ||
| arma2 |= | |game1= arma2 | ||
|version1= 1.00 | |||
|1. | |game2= arma2oa | ||
|version2= 1.50 | |||
| | |game3= tkoh | ||
|version3= 1.00 | |||
| | |game4= arma3 | ||
|version4= 0.50 | |||
|p1= position: [[Position]] | |gr1= Positions | ||
|descr= Function checks a blacklist and sees if the given position is in it or not. | |||
|s1= [position, blacklistArea] call [[BIS_fnc_isPosBlacklisted]] | |||
|p1= position: [[Array]] format [[Position]] | |||
|p2= blacklistArea: | |p2= blacklistArea: | ||
* [[Array]] of [[Position | * [[Array]] of [[Position]]s - array to format [topLeft, bottomRight] | ||
* [[Object]] - a trigger. Check the trigger area (see [[inArea]] or [[BIS_fnc_inTrigger]]) | * [[Object]] - a trigger. Check the trigger area (see [[inArea]] or [[BIS_fnc_inTrigger]]) | ||
| [[Boolean]] - is the position blacklisted or not | |r1= [[Boolean]] - is the position blacklisted or not | ||
|x1= < | |x1= <sqf>[[50,50], [[0,0], [100,100]]] call BIS_fnc_isPosBlacklisted;</sqf> | ||
|x2= < | |x2= <sqf>[getPosATL player, myTrigger] call BIS_fnc_isPosBlacklisted;</sqf> | ||
| [[BIS_fnc_inTrigger]] | |seealso= [[BIS_fnc_inTrigger]] [[inArea]] [[distance2D]] | ||
}} | }} | ||
Latest revision as of 14:08, 13 July 2022
Description
- Description:
- Function checks a blacklist and sees if the given position is in it or not.
- Execution:
- call
- Groups:
- Positions
Syntax
- Syntax:
- [position, blacklistArea] call BIS_fnc_isPosBlacklisted
- Parameters:
- position: Array format Position
- blacklistArea:
- Array of Positions - array to format [topLeft, bottomRight]
- Object - a trigger. Check the trigger area (see inArea or BIS_fnc_inTrigger)
- Return Value:
- Boolean - is the position blacklisted or not
Examples
- Example 1:
- Example 2:
Additional Information
- See also:
- BIS_fnc_inTrigger inArea distance2D
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