BIS fnc ambientBlacklist: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - " |exec= call " to " ") |
Lou Montana (talk | contribs) m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *R([a-z ])" to "$1 - r$2") |
||
(11 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
|game1= tkoh | |game1= tkoh | ||
|version1= 1.00 | |||
| | |game2= arma3 | ||
|version2= 0.50 | |||
|gr1 = Ambient | |gr1= Ambient | ||
|gr2 = Positions | |gr2= Positions | ||
|descr= Check if area is blacklisted. Blacklist triggers are to be named 'bis_ambientBlacklist_#', where # is number from 0 to 99. | |descr= Check if area is blacklisted. Blacklist triggers are to be named 'bis_ambientBlacklist_#', where # is number from 0 to 99. | ||
|s1= [input] call [[BIS_fnc_ambientBlacklist]] | |||
|p1= input: [[Array]] - | |p1= input: [[Array]] - if array, function checks if givin position is in blacklisted areas. If any [[Number]] is passed to the function instead of an [[Array]] blacklisted areas are initialized and saved in BIS_ambientBlacklist | ||
|r1= [[Boolean]] - | |r1= [[Boolean]] - returns [[Boolean]] when in blacklisted area, when initialization was triggered, it returns [[nil]] | ||
|x1= < | |x1= <sqf>[1337,1337,0] call BIS_fnc_ambientBlacklist;</sqf> | ||
|x2= < | |x2= <sqf>[0] call BIS_fnc_ambientBlacklist;</sqf> | ||
|seealso= [[BIS_fnc_ambientBlacklistAdd]] | |seealso= [[BIS_fnc_ambientBlacklistAdd]] | ||
}} | }} | ||
Latest revision as of 15:47, 8 November 2023
Description
- Description:
- Check if area is blacklisted. Blacklist triggers are to be named 'bis_ambientBlacklist_#', where # is number from 0 to 99.
- Execution:
- call
- Groups:
- AmbientPositions
Syntax
- Syntax:
- [input] call BIS_fnc_ambientBlacklist
- Parameters:
- input: Array - if array, function checks if givin position is in blacklisted areas. If any Number is passed to the function instead of an Array blacklisted areas are initialized and saved in BIS_ambientBlacklist
- Return Value:
- Boolean - returns Boolean when in blacklisted area, when initialization was triggered, it returns nil
Examples
- Example 1:
- Example 2:
Additional Information
- See also:
- BIS_fnc_ambientBlacklistAdd
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