Add BIS randomization false to Vehicles

This commit is contained in:
DESKTOP-UH65DCE\MusTanG 2017-05-29 16:41:15 -05:00
parent a993d5bb7b
commit 77a876c6ff
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