Kyridious Posted July 20, 2017 Posted July 20, 2017 Hi Guys, I'm seeing inconsistent initial behavior when spawning aircraft. To construct the simplest case: 1] Add an FW190 AI aircraft group and tick the late activation box 2] Add a second waypoint, set the speed at both waypoints to 500 kph. 3] Execute the follow lua at mission start to spawn the aircraft (I'm using MOOSE) local spawnGroup = SPAWN:New( "BluePlane" ):InitLimit( 50,50 ) local g = spawnGroup:Spawn() In some executions, the speed of the AC immediately begins to drop. In others, it stays pinned at 500kph (~450IAS). I've set up a loop to repeatedly spawn AC and print velocity after a short duration. Even within the same mission, half the spawns are nominal, half show the drop. What gives? Note: If the execution starts with a slow down, i find it impossible to recover. The AC will continue to slow down even if a new mission task is set (via RouteToVec3(), etc).
FlightControl Posted July 21, 2017 Posted July 21, 2017 Hi! Which dcs version? [TABLE][sIGPIC][/sIGPIC]| Join MOOSE community on: DISCORD :thumbup: Website of the MOOSE LUA Framework. MOOSE framework Downloads. Check out Example Missions to try out and learn. MOOSE YouTube Channel for live demonstrations and tutorials. [/TABLE]
FlightControl Posted July 21, 2017 Posted July 21, 2017 Well... Once the AI has a life and is spawned, it will follow the route outlined using the route parameters. But AI has its own brain... You have this fenomenon with every airplane and helicopters? And also in 1.5.6 (forget 1.5.7, because that is a mess)... [TABLE][sIGPIC][/sIGPIC]| Join MOOSE community on: DISCORD :thumbup: Website of the MOOSE LUA Framework. MOOSE framework Downloads. Check out Example Missions to try out and learn. MOOSE YouTube Channel for live demonstrations and tutorials. [/TABLE]
Kyridious Posted July 21, 2017 Author Posted July 21, 2017 I only tend to work with WWII assets. Haven't tried helos, but I've seen it on both the p51 & fw190.
FlightControl Posted July 21, 2017 Posted July 21, 2017 How frequent you spawn? [TABLE][sIGPIC][/sIGPIC]| Join MOOSE community on: DISCORD :thumbup: Website of the MOOSE LUA Framework. MOOSE framework Downloads. Check out Example Missions to try out and learn. MOOSE YouTube Channel for live demonstrations and tutorials. [/TABLE]
FlightControl Posted July 21, 2017 Posted July 21, 2017 Also, does the AI have a task? Like -I CAS [TABLE][sIGPIC][/sIGPIC]| Join MOOSE community on: DISCORD :thumbup: Website of the MOOSE LUA Framework. MOOSE framework Downloads. Check out Example Missions to try out and learn. MOOSE YouTube Channel for live demonstrations and tutorials. [/TABLE]
Kyridious Posted July 21, 2017 Author Posted July 21, 2017 Tests have been bare bones - just a single spawn. I've tried both CAS & Nothing for default group tasking.
Grimes Posted July 21, 2017 Posted July 21, 2017 Its a known AI issue that can occur even with units placed in the editor. Annoyingly it occurs randomly so a 100% fix hasn't been nailed down. Here is a thread on it https://forums.eagle.ru/showthread.php?t=188695 The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
Kyridious Posted July 21, 2017 Author Posted July 21, 2017 Thanks for the link Grimes. I'll adopt the "test & respawn" workaround for now.
Recommended Posts