-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #165 from ColinM9991/api-suggestions
* add setter function to override civClasses * add function to remove exclusion zone
- Loading branch information
Showing
6 changed files
with
85 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#include "..\script_component.hpp" | ||
|
||
params ["_area"]; | ||
|
||
ISNILS(GVAR(EXCLUSION_ZONES), []); | ||
|
||
private _zoneIdx = GVAR(EXCLUSION_ZONES) findIf { | ||
_area isEqualTo (if(_x isEqualType []) then [{_x#0}, {_x}]); | ||
}; | ||
|
||
if(_zoneIdx isEqualTo -1) exitWith{}; | ||
|
||
GVAR(EXCLUSION_ZONES) deleteAt _zoneIdx; | ||
|
||
INFO_1("removed exclusion zone %1", _area); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#include "..\script_component.hpp" | ||
|
||
params [ | ||
["_value",[], [[]]] // array of civilian unit class names | ||
]; | ||
|
||
assert(_value isEqualTypeAll ""); | ||
|
||
[QGVAR(civClasses), str _value, 1, "mission"] call CBA_settings_fnc_set; |