Load Veh / Build - Compaticility to current DB

This commit is contained in:
He-Man 2019-09-21 00:08:48 +02:00
parent 4ea25cc909
commit 8a412c0da1
2 changed files with 10 additions and 0 deletions

View File

@ -78,6 +78,11 @@ for "_i" from 0 to _this do {
_worldspace params ["_pos","_vectordir","_vectorup",["_useworld",false]];
_vectordirup = [_vectordir,_vectorup];
// increased position precision
if (count _pos == 2) then{
_pos = (_pos select 0) vectorAdd (_pos select 1);
};
// remove old safes on && !(_class isKindOf 'Constructions_lockedstatic_F')
if (isClass (configFile >> "CfgVehicles" >> _class) && (_damage < 1) && !(_class isKindOf 'Constructions_lockedstatic_F')) then {

View File

@ -52,6 +52,11 @@ for "_i" from 1 to _maxStorageLimit do {
_worldspace params ["_pos","_vectordir","_vectorup",["_useworld",false]];
_vectordirup = [_vectordir,_vectorup];
// increased position precision
if (count _pos == 2) then{
_pos = (_pos select 0) vectorAdd(_pos select 1);
};
_vehicle = createVehicle[_class, [0,0,0], [], 0, "CAN_COLLIDE"];
// find gardens