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:
ebayShopper
2017-04-05 15:49:16 -04:00
parent 95ab6a28ab
commit 4b14397c7b
4 changed files with 16 additions and 2 deletions

View File

@@ -135,7 +135,7 @@ if (_enoughMoney) then {
// Note server now uses createVehicle "NONE" so next closest safePos is found automatically if location is blocked
if (count _helipad > 0) then {
_location = getPosATL (_helipad select 0);
_location = [(_helipad select 0)] call FNC_GetPos;
} else {
_location = [player] call FNC_GetPos;
};
@@ -143,7 +143,13 @@ if (_enoughMoney) then {
_sign = "Sign_arrow_down_large_EP1" createVehicleLocal [0,0,0];
_sign setPos _location;
_location = [_sign] call FNC_GetPos;
[_part_out,_sign] call fn_waitForObject;
if (surfaceIsWater _location && {count (_location nearEntities ["Ship",8]) > 0}) then {
deleteVehicle _sign;
localize "STR_EPOCH_TRADE_OBSTRUCTED" call dayz_rollingMessages;
} else {
[_part_out,_sign] call fn_waitForObject;
};
if (_buyingType in DZE_tradeVehicleKeyless) then {
PVDZE_veh_Publish2 = [[_dir,_location],_part_out,true,"0",_activatingPlayer];