hey don't forget.
That flyinheight command does not seems to work more the ONCE or at all in the waypoint init field
Trying using flags, I encountered a different problem but the problem shares the same root as yours. Trying to make the chopper to fly as if it was flown by humans not AI.
Let say the pilot is named pilotA and the chopper is named chopperA
Use 2 triggers. Add FIRST trigger to the area where there are trees. Group it (F2 key or the grouping command, that greenish line which appears when you add a group of soldiers) with the chopper or pilot. Just drag the FIRST trigger to the pilotA or chopperA
pilotA flyInHeight ###
[/b]
or, if the chopper begin WITHOUT a pilot (which from my point of view is for the very reason of better control)
chopperA flyInHeight ###
[/b]
Now, set the area trigger where you know the chopper will be facing a face load of trees, move the trigger before the chopper reach those trees. This is where you will be doing alot of what I did, the boring "PREVIEW", sit and watch play testing.
Then, set the SECOND trigger that same as the FIRST one. Except position this strategically at the end of the forest area.
If you want something more complicated. You can add a timer for the SECOND trigger and increase it size untill it convers the entire forest. Now add a countdown time for the SECOND trigger.
You now have a tigger that have the chopper does the following.
1.) once the chopper enters the FIRST trigger, it will fly up higher to avoid eating leaves.
2.) the chopper will also fly into the SECOND trigger the same time it fly into the FIRST. Because you have increase the SECOND trigger's size. But it won't activate untill a certain time. (the time THAT you find it necessary for the chopper to fly over the obstacles)
3.) the chopper will lower itself back down.
If you need a mission to show you how this work, I will do one. But please use your imagination, I just solved a real simple yet bitchy to do action.
Trying to make the chopper to STOP unloading troops once the BMP the troops suppose to enter was destroyed. It looks dramatic because the BMP is right infront of the chopper as the chopper decends.
Once the BMP explodes, you will see the chopper abort this particular landing zone and head towards the second one.
You are welcome to look at this ...
http://www.ofpec.com/yabbse/index.php?board=8;action=display;threadid=15303Hope my advice help and not too ambigious.