fixed minor typo in vars

This commit is contained in:
vbawol 2017-07-20 11:07:24 -05:00
parent 54af60ccc2
commit 292108715b
3 changed files with 13 additions and 13 deletions

View File

@ -212,13 +212,13 @@ for "_i" from 1 to _maxVehicleLimit do {
// vehicle simulation handler // vehicle simulation handler
if (_simulationHandler) then{ if (_simulationHandler) then{
_vehicle enableSimulationGlobal false; _vehicle enableSimulationGlobal false;
}; };
// new Dynamicsimulation // new Dynamicsimulation
_vehObj enableSimulationGlobal false; // turn it off until activated by dynamicSim _vehicle enableSimulationGlobal false; // turn it off until activated by dynamicSim
_vehObj enableDynamicSimulation true; _vehicle enableDynamicSimulation true;
// turrets // turrets
/* /*
_mags = _vehicle magazinesTurret [0]; _mags = _vehicle magazinesTurret [0];

View File

@ -43,7 +43,7 @@ _fuel = fuel _veh;
deletevehicle _veh; deletevehicle _veh;
waituntil {isnull _veh}; waituntil {isnull _veh};
_pos set [2,(_pos select 2)+0.5]; _pos set [2,(_pos select 2)+0.5];
_newVeh = createVehicle [_UpgradeVeh, [random 500, random 500,500], [], 0, "CAN_COLLIDE"]; _newVeh = createVehicle [_UpgradeVeh, [random 500, random 500,500], [], 0, "CAN_COLLIDE"];
_newVeh setVariable ["VEHICLE_SLOT", _slot, true]; _newVeh setVariable ["VEHICLE_SLOT", _slot, true];
if!(_baseVeh isEqualTo "")then if!(_baseVeh isEqualTo "")then
{ {
@ -58,7 +58,7 @@ _newVeh setposasl _pos;
// set fuel level // set fuel level
_newVeh setFuel _fuel; _newVeh setFuel _fuel;
// apply persistent textures // apply persistent textures
_cfgEpochVehicles = 'CfgEpochVehicles' call EPOCH_returnConfig; _cfgEpochVehicles = 'CfgEpochVehicles' call EPOCH_returnConfig;
_newbaseVeh = _veh getVariable ["VEHICLE_BASECLASS",""]; _newbaseVeh = _veh getVariable ["VEHICLE_BASECLASS",""];
@ -78,7 +78,7 @@ if (isArray(_availableColorsConfig)) then {
} forEach _selections; } forEach _selections;
_newVeh setVariable ["VEHICLE_TEXTURE", _color]; _newVeh setVariable ["VEHICLE_TEXTURE", _color];
}; };
// disable thermal imaging equipment // disable thermal imaging equipment
_newVeh disableTIEquipment true; _newVeh disableTIEquipment true;
@ -99,12 +99,12 @@ if !(_allHitpoints isEqualTo []) then{
}; };
// new Dynamicsimulation // new Dynamicsimulation
_vehObj enableSimulationGlobal false; // turn it off until activated by dynamicSim _newveh enableSimulationGlobal false; // turn it off until activated by dynamicSim
_vehObj enableDynamicSimulation true; _newveh enableDynamicSimulation true;
// add back old inventory // add back old inventory
[_newveh,_cargo] call EPOCH_server_CargoFill; [_newveh,_cargo] call EPOCH_server_CargoFill;
// save new vehicle to db // save new vehicle to db
_newveh call EPOCH_Server_Save_Vehicle; _newveh call EPOCH_Server_Save_Vehicle;

View File

@ -107,12 +107,12 @@ if !(isNull _vehObj) then{
_vehLockHiveKey = format["%1:%2", (call EPOCH_fn_InstanceID), _slot]; _vehLockHiveKey = format["%1:%2", (call EPOCH_fn_InstanceID), _slot];
["VehicleLock", _vehLockHiveKey] call EPOCH_fnc_server_hiveDEL; ["VehicleLock", _vehLockHiveKey] call EPOCH_fnc_server_hiveDEL;
}; };
// new Dynamicsimulation // new Dynamicsimulation
_vehObj enableSimulationGlobal false; // turn it off until activated by dynamicSim _vehObj enableSimulationGlobal false; // turn it off until activated by dynamicSim
_vehObj enableDynamicSimulation true; _vehObj enableDynamicSimulation true;
// SAVE VEHICLE // SAVE VEHICLE
_vehObj call EPOCH_server_save_vehicle; _vehObj call EPOCH_server_save_vehicle;