Skip to content

Instantly share code, notes, and snippets.

@Tim-Machine
Created August 30, 2016 17:11
Show Gist options
  • Save Tim-Machine/c90cabdede47310d2bc2040c017362aa to your computer and use it in GitHub Desktop.
Save Tim-Machine/c90cabdede47310d2bc2040c017362aa to your computer and use it in GitHub Desktop.
Just a silly thought, I guess we all use DMS, DMS has an option to freeze AI when players aren't nearby, could it be that thing somehow affecting players?
If you want to test that theory, in fn_FreezeToggle.sqf in DMS, change the section:
if (_freeze) then
{
{
_x enableSimulationGlobal false;
(vehicle _x) enableSimulationGlobal false;
} forEach (units _group);
_group setVariable ["DMS_isGroupFrozen",true];
DMS_FrozenAIGroups pushBack _group;
}
to this:
_i = 0;
if (_freeze) then
{
{
if (!(isPlayer _x)) then {
_x enableSimulationGlobal false;
(vehicle _x) enableSimulationGlobal false;
_i = _i + 1;
};
} forEach (units _group);
if (_i > 0 then {
_group setVariable ["DMS_isGroupFrozen",true];
DMS_FrozenAIGroups pushBack _group;
} else {
_group setVariable ["DMS_isGroupFrozen",false];
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment