BIS fnc isPosBlacklisted: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
| arma2 |Game name= | | arma2 |Game name= | ||
Line 7: | Line 6: | ||
|gr1 = Positions |GROUP1= | |gr1 = Positions |GROUP1= | ||
| Function checks a blacklist and sees if the given position is in it or not. |DESCRIPTION= | | Function checks a blacklist and sees if the given position is in it or not. |DESCRIPTION= | ||
| [position, blacklistArea] call [[BIS_fnc_isPosBlacklisted]] |SYNTAX= | | [position, blacklistArea] call [[BIS_fnc_isPosBlacklisted]] |SYNTAX= | ||
Line 21: | Line 18: | ||
| [[Boolean]] - is the position blacklisted or not |RETURNVALUE= | | [[Boolean]] - is the position blacklisted or not |RETURNVALUE= | ||
|x1= <code><nowiki>[</nowiki>[50,50], [<nowiki/>[0,0], [100,100]]] [[call]] [[BIS_fnc_isPosBlacklisted]];</code> |EXAMPLE1= | |x1= <code><nowiki>[</nowiki>[50,50], [<nowiki/>[0,0], [100,100]]] [[call]] [[BIS_fnc_isPosBlacklisted]];</code> |EXAMPLE1= | ||
|x2= <code><nowiki>[</nowiki>[[getPos]] [[player]], myTrigger] [[call]] [[BIS_fnc_isPosBlacklisted]];</code> |EXAMPLE2= | |x2= <code><nowiki>[</nowiki>[[getPos]] [[player]], myTrigger] [[call]] [[BIS_fnc_isPosBlacklisted]];</code> |EXAMPLE2= | ||
| [[BIS_fnc_inTrigger]], [[inArea]], [[distance2D]] |SEEALSO= | | [[BIS_fnc_inTrigger]], [[inArea]], [[distance2D]] |SEEALSO= |
Revision as of 00:20, 17 January 2021
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: 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:
[[50,50], [[0,0], [100,100]]] call BIS_fnc_isPosBlacklisted;
- Example 2:
[getPos player, myTrigger] call BIS_fnc_isPosBlacklisted;
Additional Information
- See also:
- BIS_fnc_inTriggerinAreadistance2D
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