Merge pull request #758 from ravmustang/Vehicle-Upgrades

Add BIS randomization false to Vehicles
This commit is contained in:
vbawol 2017-05-29 16:45:33 -05:00 committed by GitHub
commit b2a43d1ecc
2 changed files with 5 additions and 1 deletions

View File

@ -72,9 +72,11 @@ for "_i" from 1 to _maxVehicleLimit do {
// spawn vehicle at temp location.
_vehicle = createVehicle [_class, _location, [], 0, "CAN_COLLIDE"];
// turn off BIS randomization
_vehicle setVariable ["BIS_enableRandomization", false];
if !(isNull _vehicle) then {
// make vehicle immune from damage.
_vehicle allowDamage false;
_vehicle allowDamage false;
// store spawned vehicles in array to make one call to remains handler
_allVehicles pushBack _vehicle;
// remove selected slot from array and set on vehicle

View File

@ -21,6 +21,8 @@ _serverSettingsConfig = configFile >> "CfgEpochServer";
_removeweapons = [_serverSettingsConfig, "removevehweapons", []] call EPOCH_fnc_returnConfigEntry;
_removemagazinesturret = [_serverSettingsConfig, "removevehmagazinesturret", []] call EPOCH_fnc_returnConfigEntry;
_vehObj = createVehicle[_vehClass, _position, [], 0, _can_collide];
// turn off BIS randomization
_vehObj setVariable ["BIS_enableRandomization", false];
if !(isNull _vehObj) then{
_vehObj call EPOCH_server_setVToken;
// Set Direction and position