mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-18 01:30:26 +03:00
Fix purchased boat not spawning on helipad
https://epochmod.com/forum/topic/43644-problem-with-napf-boat-spawn-in-1061/
This commit is contained in:
@@ -88,6 +88,10 @@ _key call server_hiveWrite;
|
||||
//_object = createVehicle [_class, _location, [], 0, "CAN_COLLIDE"];
|
||||
// Don't use setPos or CAN_COLLIDE here. It will spawn inside other vehicles
|
||||
_object = _class createVehicle _location;
|
||||
if (surfaceIsWater _location && {count (_location nearEntities ["Ship",8]) == 0}) then {
|
||||
//createVehicle "NONE" is especially inaccurate in water
|
||||
_object setPos _location;
|
||||
};
|
||||
};
|
||||
|
||||
if(!_donotusekey) then {
|
||||
|
||||
Reference in New Issue
Block a user