fn_isBigtownActive

This commit is contained in:
Wyqer 2019-12-07 21:16:40 +01:00
parent ea35b29dca
commit cc149d0d0d
No known key found for this signature in database
GPG Key ID: D7E2F8BD7F1E48FA
1 changed files with 5 additions and 13 deletions

View File

@ -2,25 +2,17 @@
File: fn_isBigtownActive.sqf
Author: KP Liberation Dev Team - https://github.com/KillahPotatoes
Date: 2019-12-03
Last Update: 2019-12-03
Last Update: 2019-12-07
License: MIT License - http://www.opensource.org/licenses/MIT
Description:
No description added yet.
Checks if a bigtown (capital) is currently activated.
Parameter(s):
_localVariable - Description [DATATYPE, defaults to DEFAULTVALUE]
NONE
Returns:
Function reached the end [BOOL]
Bigtown currently activated [BOOL]
*/
// TODO
private _is_bigtown_active = false;
if (!isNil "active_sectors") then {
{
if (_x in sectors_bigtown) exitWith {_is_bigtown_active = true};
} forEach active_sectors;
};
_is_bigtown_active
(activte_sectors findIf {_x in sectors_bigtown}) != -1