Jump to content

Recommended Posts

Posted

I can spawn a refueling tanker easy enough, but it ignores the heading field and always seems to spawn flying east.

 

I have tried it with a couple different airplanes and groups, but they all fly east to begin and then turn towards the first waypoint.

 

What am I missing, or is this a bug?

 

Included is the spawn script for the KC135 which is just the group table where I hard coded the heading to 3.14155 which should be west.  The mission file is simply that script being called at time > 2.

KC135_Table_Spawn.txt Testing_Tanker_Script.miz

Posted (edited)

Your first waypoint is east of the spawn point, so it automatically starts off facing east to fly towards it. I'm pretty sure that will just override what you set for the heading in units.

Screen_210729_204141.png

Edit: after a few other various tests, it seems it spawns in every time at heading 080. Interesting

Edited by Wizxrd
Posted
4 minutes ago, Wizxrd said:

Your first waypoint is east of the spawn point, so it automatically starts off facing east to fly towards it. I'm pretty sure that will just override what you set for the heading in units.

 

 

 

Not a fix.

I moved the waypont to the west by decreasing the Y position by 10000, and it still spawned flying east but turned slowly to fly west.

Thanks for the suggestion.

Posted (edited)

Something could be wrong with the template you're using. I've directly copied a group I created via the ME and it seems to be following the route without facing a different direction. Try this example template and let me know if it fixes your issue 😄

Edit again: Weird things happen if you try and change the point to anything other than what you've copied over. My suggestion is to create a template in the ME of your tanker group with all points and tasks you want. Save your mission, make a copy of it and change .miz to .zip. Open the .zip and open the mission file that's inside( just named "mission" ). You'll be able to copy and paste the entire group table over and it should work everytime.
 

KC135_Table_Spawn.lua

Edited by Wizxrd
Posted

Looking at your lua file I noticed something:

 

                ["psi"] = 1.6651584930974,
                ["heading"] = -1.6651584930974,

 

Which looked too similar to be a coincidence,.

 

From a quick search I found "delta_psi = , -- aspect angle rad" on https://wiki.hoggitworld.com/view/DCS_Export_Script   which explained nothing.

 

So, some quick testing and it seems that setting the psi value, sets the spawn direction.

psi = 0 = north, pi = south,  1/2 pi = west, 1.5pi = east.  Yes this is 90 degrees out of phase of normal heading radians where 0 would be east and pi would be west.

 

I never wondered what psi was used for, but I guess I have some idea of it now.

 

Thanks for your help.

  • Like 1
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...