mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Merge pull request #758 from ravmustang/Vehicle-Upgrades
Add BIS randomization false to Vehicles
This commit is contained in:
commit
b2a43d1ecc
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user