BIS fnc isPosBlacklisted: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...)
m (Some wiki formatting)
 
(21 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function
{{RV|type=function


| arma2
|game1= arma2
|version1= 1.00


|1.00
|game2= arma2oa
|version2= 1.50


|gr1 = Positions
|game3= tkoh
|version3= 1.00


| Function checks a blacklist and sees if the given position is in it or not.
|game4= arma3
|version4= 0.50


| [position, blacklistArea] call [[BIS_fnc_isPosBlacklisted]]
|gr1= Positions


|p1= position: [[Position]]
|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|Positions]] - array to format [topLeft, bottomRight]
* [[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= <code><nowiki>[</nowiki>[50,50], [<nowiki/>[0,0], [100,100]]] [[call]] [[BIS_fnc_isPosBlacklisted]];</code>
|x1= <sqf>[[50,50], [[0,0], [100,100]]] call BIS_fnc_isPosBlacklisted;</sqf>


|x2= <code><nowiki>[</nowiki>[[getPos]] [[player]], myTrigger] [[call]] [[BIS_fnc_isPosBlacklisted]];</code>
|x2= <sqf>[getPosATL player, myTrigger] call BIS_fnc_isPosBlacklisted;</sqf>


| [[BIS_fnc_inTrigger]], [[inArea]], [[distance2D]]
|seealso= [[BIS_fnc_inTrigger]] [[inArea]] [[distance2D]]
}}
}}
<h3 style="display:none">Bottom Section</h3>
[[Category:Functions|{{uc:isPosBlacklisted}}]]
[[Category:{{Name|arma2}}: Functions|{{uc:isPosBlacklisted}}]]
[[Category:{{Name|arma2oa}}: Functions|{{uc:isPosBlacklisted}}]]
[[Category:{{Name|tkoh}}: Functions|{{uc:isPosBlacklisted}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:isPosBlacklisted}}]]

Latest revision as of 14:08, 13 July 2022

Hover & click on the images for description

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:
Return Value:
Boolean - is the position blacklisted or not

Examples

Example 1:
[[50,50], [[0,0], [100,100]]] call BIS_fnc_isPosBlacklisted;
Example 2:
[getPosATL player, myTrigger] call BIS_fnc_isPosBlacklisted;

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