BIS fnc ambientBlacklist: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|+$" to "") |
Lou Montana (talk | contribs) m (Text replacement - "<code>(\[[a-zA-Z0-9_, ]*\] )?\[\[(call|spawn)\]\] \[\[(BI[NS]\_fnc\_[a-zA-Z0-9_]+)\]\];?<\/code>" to "<sqf>$1$2 $3;</sqf>") |
||
Line 19: | Line 19: | ||
|r1= [[Boolean]] - Returns [[Boolean]] when in blacklisted area, when initialization was triggered, it returns [[nil]] | |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]] | ||
}} | }} |
Revision as of 13:04, 5 May 2022
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