diff --git a/functions/behaviour/fn_stopCiv.sqf b/functions/behaviour/fn_stopCiv.sqf index d5b3f9ab..649a2b50 100644 --- a/functions/behaviour/fn_stopCiv.sqf +++ b/functions/behaviour/fn_stopCiv.sqf @@ -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"); }; diff --git a/functions/spawn/fn_spawnCivilian.sqf b/functions/spawn/fn_spawnCivilian.sqf index d58a86f3..307b6d15 100644 --- a/functions/spawn/fn_spawnCivilian.sqf +++ b/functions/spawn/fn_spawnCivilian.sqf @@ -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"; diff --git a/package.json b/package.json index 7b56b08b..40a68dab 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "grad-civs", "description": "ambient civilians", - "version": "0.2.1", + "version": "0.2.2", "contributors": [ { "name": "nomisum"