Skip to content

Commit

Permalink
add exclusion variable for stopCiv
Browse files Browse the repository at this point in the history
  • Loading branch information
McDiod committed Aug 13, 2017
1 parent 2fe6b6b commit d7624d2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions functions/behaviour/fn_stopCiv.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ params ["_unit"];

private _grp = group _unit;

if !(_grp getVariable ["grad_civs_isGradCiv",false]) exitWith {};

if (_grp getVariable ["grad_civs_stopScriptRunning", false]) exitWith {
INFO("already one instance of stopciv running");
};
Expand Down
1 change: 1 addition & 0 deletions functions/spawn/fn_spawnCivilian.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ params ["_pos"];
INFO_1("POS: %1",_pos);

private _group = createGroup [civilian, true];
_group setVariable ["grad_civs_isGradCiv",true];
private _unit = _group createUnit ["C_man_1", _pos, [], 0, "NONE"];

_unit disableAI "FSM";
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "grad-civs",
"description": "ambient civilians",
"version": "0.2.1",
"version": "0.2.2",
"contributors": [
{
"name": "nomisum"
Expand Down

0 comments on commit d7624d2

Please sign in to comment.