Skip to content

Commit

Permalink
change _activation to _activationDistance
Browse files Browse the repository at this point in the history
  • Loading branch information
Madin authored and Madin committed May 11, 2024
1 parent 6a0dcfa commit 3ceba4b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions addons/simpleSpawn/functions/fn_despawn.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ private _aliveGroupIndex = _spawnedGroups findIf {
};
if (_aliveGroupIndex == -1) exitWith {}; // no alive units left.

private _activation = _logic getVariable [QGVAR(activation), 750];
private _activationDistance = _logic getVariable [QGVAR(activationDistance), 750];
private _deactivation = _logic getVariable [QGVAR(deactivation), 750];
private _deactivationDistance = _activation + _deactivation;
private _deactivationDistance = _activationDistance + _deactivation;

private _nearUnits = _logic nearEntities ["AllVehicles", _deactivationDistance];

Expand Down
4 changes: 2 additions & 2 deletions addons/simpleSpawn/functions/fn_firstState.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ params [
["_interval", 0.1],
["_unitsPerInterval", 1],
["_deleteVehicles", false],
["_activation", 750],
["_activationDistance", 750],
["_deactivation", -1],
["_includeAir", false],
["_forceActivate", true],
Expand All @@ -36,7 +36,7 @@ if (_logic isEqualTo objNull) exitWith {};
_logic setVariable [QGVAR(activationTriggers), _activationTriggers];
_logic setVariable [QGVAR(groups), _groups];
_logic setVariable [QGVAR(vehiclesInfo), _vehiclesInfo];
_logic setVariable [QGVAR(activation), _activation];
_logic setVariable [QGVAR(activationDistance), _activationDistance];
_logic setVariable [QGVAR(deactivation), _deactivation];
_logic setVariable [QGVAR(includeAir), _includeAir];
_logic setVariable [QGVAR(forceActivate), _forceActivate];
Expand Down
4 changes: 2 additions & 2 deletions addons/simpleSpawn/functions/fn_waitUntil.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ if (_activate) then {
private _interval = _logic getVariable [QGVAR(interval) ,[]];
private _unitsPerInterval = _logic getVariable [QGVAR(unitsPerInterval), []];
private _deleteVehicles = _logic getVariable [QGVAR(deleteVehicles), false];
private _activation = _logic getVariable [QGVAR(activation), 750];
private _activationDistance = _logic getVariable [QGVAR(activationDistance), 750];
private _deactivation = _logic getVariable [QGVAR(deactivation), -1];
private _includeAir = _logic getVariable [QGVAR(includeAir), false];
private _forceActivate = _logic getVariable [QGVAR(forceActivate), false];
Expand All @@ -50,7 +50,7 @@ if (_activate) then {
_interval,
_unitsPerInterval,
_deleteVehicles,
_activation,
_activationDistance,
_deactivation,
_includeAir,
_forceActivate,
Expand Down

0 comments on commit 3ceba4b

Please sign in to comment.