Merge pull request #54 from ravmustang/master

Master
This commit is contained in:
eraser1 2017-04-28 20:34:40 -05:00 committed by GitHub
commit df3edce010
3 changed files with 11 additions and 15 deletions

View File

@ -164,8 +164,10 @@
{
_x lock 1;
};
//_x call ExileServer_system_simulationMonitor_addVehicle;
if!(dynamicSimulationEnabled _x)then
{
_x call ExileServer_system_simulationMonitor_addVehicle;
};
} forEach _vehs;
{

View File

@ -166,7 +166,10 @@
_x lock 1;
};
//_x call ExileServer_system_simulationMonitor_addVehicle;
if!(dynamicSimulationEnabled _x)then
{
_x call ExileServer_system_simulationMonitor_addVehicle;
};
} forEach _vehs;
{

View File

@ -105,11 +105,7 @@ if (!(_grpUnits isEqualTo []) && {(leader _grp) isEqualTo _unit}) then
private _av = _unit getVariable ["DMS_AssignedVeh",objNull];
if (!isNull _av) then
{
if(dynamicSimulationSystemEnabled)then
{
_av enableDynamicSimulation true;
}
else
if!(dynamicSimulationEnabled _av)then
{
_av enableSimulationGlobal true;
};
@ -156,14 +152,9 @@ if (!isNull _av) then
[_av, 1] remoteExecCall ["lock", _av];
};
//_av call ExileServer_system_simulationMonitor_addVehicle;
if(dynamicSimulationSystemEnabled)then
{
_av enableDynamicSimulation true;
}
else
if!(dynamicSimulationEnabled _av)then
{
_av call ExileServer_system_simulationMonitor_addVehicle;
_av enableSimulationGlobal true;
};
_av setVariable ["ExileMoney",0,true];