Jump to content
Sign in to follow this  
NightRain

Trader issue. Purchased vehicle spawns up in air

Recommended Posts

Heya, I've been trying to tinker with this issue for a week. Here's the situation:

I've placed a LHD built in mission editor. I managed to add a Agent there as a trader which functions fine and exists constantly without vanishing into the ocean, right so that functions properly.

The issue is with purchasing a vehicle. It doesn't function as expected. I have included a HeliHCivil on it with a set position that its height should be about the same as carrier's deck. (I tested it previously that if you increase its Z it will spawn the machine exactly at that height and remain frozen in air until touched.) When purchasing a air vehicle it spawns 500m into the air as title informs, it is unclear to me whether the hitbox of the carrier just happens to be that huge or why it does it, this is beyond my ability to comprehend it.

This happens if there are a structure on the spawn point, if none exist it spawns precisely how you'd want it. I tested it by making it spawn above ocean it worked and then placed metal floors about it and bought it again. vehicle spawned in the air again.

I tried to lower the Helipad's height with -X (with X being amount added) but it results in the purchased vehicle spawning in the center of the map.

Are there any solution to how to make it spawn on the helipad even if the helipad is on top of a building or similar? I might've exhausted all my options. Thank you.

 

Update on 1.0.6.1

When purchasing on ocean the vehicle spawns on the bottom of the sea instead of on the helipad.

 

Share this post


Link to post
Share on other sites

Not really,

I fixed it by using fnc_getPos to properly get ASL height,  probably other changes as well, it was a while ago. You can look at the 1.0.6.1 github if you want to compare. But you may be wasting your time holding on to 1.0.5.1 because it will be removed from dayzlauncher in 2 weeks

Share this post


Link to post
Share on other sites

Hey, A double post but this came to my attention.

In 1.0.6.1 I came to a new issue. I've laid the deck for the helipad to its correct height via SetPosASL but apperantly the trader is ignoring the marker  entirely and none of the purchased vehicles spawn in that spot. Instead they spawn down at the bottom of the sea.

I've studied the code and I think that this might be the reason why:

 
Quote

 

//Taken from trade_any_vehicle.sqf

if(count _helipad > 0) then {

_location = getPosATL (_helipad select 0);
} else {
_location = [player] call FNC_GetPos;

};

 

It looks the helipad's location from ATL perspective which means it doesn't look it correctly if the helipad uses SetPosASL.
 

Quote

 

//Helipad onboard the ship

_this = createVehicle ["HeliHCivil", [14736.882, 633.80219, 0], [], 0, "CAN_COLLIDE"];
  _vehicle_236 = _this;
  _this setPosASL [14733.882, 640.80219, 17]; //Height for proper position on ship = 17.

 

 

 

The radius for trader is 100m only but I played with it in the past and it didn't seem to matter.

Currently all purchased vehicles spawn on the helipad- except instead of following the ASL x,zy,z it ignores Z entirely and thus the vehicle spawns at the bottom of the sea.

The marker that indicates where the vehicle spawns appears 500m in to the air. This time the vehicle doesn't spawn there of course hah.

 

Share this post


Link to post
Share on other sites

@Epoch Contributor I can't get the trade_any_vehicle.sqf added as a modded script for some reason, how would I be able to use my own version of it instead of calling it from DayZ_Code?

@Hardened Anything above water is wonky since you need to use SetPosASL instead of SetPos or SetPosATL, but it is a little wonky because there is a structure as a platform.

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Similar Content

    • By 2DayZ2Retirement
      -PROBLEM SOLVED-
       
      G'day, Survivors.
      I am having an issue on my server where vehicles which spawn randomly around the map repair themselves upon server restart.
      I use this config in my init.sqf which successfully spawns the vehicles in damaged and with low fuel...
      DynamicVehicleDamageLow = 75;
      DynamicVehicleDamageHigh = 100;
      DynamicVehicleFuelLow = 0;
      DynamicVehicleFuelHigh = 25;
      ...However upon each server restart the vehicles repair themselves (the fuel remains low however) and for the life of me I can't figure out why this is happening. 
      DayZ Version -DayZ Epoch 1.0.6.2
      Scripts Used -DZAI | -DZMS | -Right Click Actions (Suicide, Smoke Drugs, GPS Scan)
      AntiHack - InfiSTAR
      Server Host - GTXGaming
      My HiveEXT.log and arma2oaserver.RPT logs are not showing anything out of the ordinary.
      I'm not sure if it matter, but all Planes/Helicopters and Boats have been removed from the server via the dynamic_vehicle.sqf.
      In addition, all of the traders and trader cities being removed by removing the call for the CfgServerTrader.hpp in the description.ext.
      If there is any other info I can show to assist in fixing this problem please let me know, any help would be greatly appreciated.
      Cheers.
    • By rocalpha
      Bonjour, j’écris aujourd’hui parce que j’aimerais savoir si vous ne pourrez pas m'aider. Je loue un serveur via gportal et j’aimerais pouvoir être mon serveur en PvE, mais aussi créer des éléments de base pour la connexion et des choses simples comme . J'ai un autre problème lorsque j'achète une voiture chère à pied cela me met une flèche rouge puis rien non aucun véhicule il apparait qu'après un redémarrage du serveur
    • By Warburgg
      I installed the dynamic climate script and it happens that it rains on the server but only lasts 10 seconds and stops. Is it because I use the script that speeds server time? I currently use Control Time which allows the server to have 2 hours of day and 1 hour night.
      The other climates such as overcast and fog last the forecast time 5-20 minutes but the rain does not.
      In my logs show: 16:52:30 "39:2 Debug: Rain set to 0.92421 for 10.6582 minutes". It rains until it rains but soon stops.
    • By Brian Soanes
      To unlock vehicles left in your traders over a server restart, open your epoch_server.pbo

      In epoch_server\compile\epoch_vehicle\EPOCH_load_vehicles.sqf
      Find
      if (_allowDamage) then { Just above that, add this
      A3E_SafeZonePosArray = [ [[18451.9,14278.1,0]], //Altis East trader [[13333.5,14494.3,0]], //Altis Central trader [[6192.46,16834,0]] //Altis West trader ]; { if (_vehicle distance (_x select 0) < 200) then { _vehicle lock false; diag_log format["Vehicle %1 left in trader unlocked @ %2", _class, mapGridPosition _vehicle]; }; } forEach A3E_SafeZonePosArray; Pack pbo and you're good to go
    • By Tanita-Corp
      Hello guys)
      Tell me please how to make 
      spawned veh. unused 4 day deleted
      with key veh. unused 14 day deleted
       
      I broke my head
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...