Change ItemGenerator to WeaponHolder_ItemGenerator

With WeaponHolder_ItemGenerator we do not need the postion set up in the spawn.sqf
This commit is contained in:
AirwavesMan
2020-09-13 16:53:36 +02:00
parent 0b26ae1246
commit bf516a65e5
6 changed files with 7 additions and 13 deletions

View File

@@ -45,11 +45,6 @@ call {
_vehicle = "WeaponHolder" createVehicle [0,0,0];
_vehicle addMagazineCargoGlobal [_item, 1];
// Fix generator spawning half way in the floor by raising z coordinate by .3 meters.
if (_item == "ItemGenerator") then {
_pos set [2, ((_pos select 2) + .3)];
};
if (_isWater) then {
_vehicle setPos (_pos);
} else {