When using FlyInHeightASL the AI pilots will still copy the ground elevation,
even when using values like [600,600,600], they are still trying to avoid terrain, as if they were following terrain.
Description
Details
- Severity
- Major
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 7
- Category
- Scripting
Place plane mid air,
this FlyInHeight [600,600,600] in init field,
watch how it still follows the terrain.
Event Timeline
Still broken.
Case in point: a script I'm working on that spawns in and AI-piloted armed Blackfish VTOL with a loiter waypoint...
According to the BI Wiki entry given values for both flyInHeight and flyInHeightASL it should travel at max(flyInHeight, flyInHeightASL). Thus with...
_plane flyInHeight 100; _plane flyInHeightASL [1000, 1000, 1000];
...over rough terrain like Tanoa's main island I'm expecting level flight at 1000 m ASL so long as the terrain elevation doesn't exceed 900 m ASL. What actually happens however is the Blackfish follows terrain at approx. 100m altitude, ignoring the flyInHeightASL command completely.
Hi @Wulf!
Respectfully, it doesn't. I've tested my script without the flyInHeight line and it still completely ignores the flyInHeightASL command. The result of...
_plane flyInHeightASL [1000, 1000, 1000];
...is terrain-following flight at around 100 m altitude, which I believe is the default flying height.
I want to point out that the loiter waypoint is also involved so what I'm experiencing is comparable to what FrostyKush reported here.
Hmm. Could you please upload your mission here so that we might have a look at it?
Thank you.
Gladly! But before I do that, the script I'm working on is currently in the form of a mod. Is it alright if I upload separate PBOs for the mission and the mod along with repro steps, or would you rather I try to integrate my script into the mission?
Understandably, you guys probably don't want to get into the practice of troubleshooting peoples' mods for them, right? ;)
I've incorporated the script from my mod into the mission...
...and also uploaded the SQF for your convenience...
Repro steps:
- In debug console... execVM "blackfishCAS.sqf";
- Watch the Blackfish settle into a loiter with 500m radius, skimming the water and dodging the hills at ~100m rather than ignoring terrain at a constant 1000m ASL.
Thanks for looking into this for us!
After some testing. Seems that the loiter waypoint is causing this issue, we will have a look at it.