I've given up the task of syncing and messing with waypoint for a AI controlled chopper insertion/extraction.
I'm just going to script it instead.... it's a bit more predictable.
My problem now is that if I give a doMove command to a position and then do land "GET OUT".
The chopper will only go down, touch the ground and then go back to hovering.
It doesn't matter if I put another landing mode - same result.
If I give the doStop command after land the chopper will turn it's engines off and I don't want that.
So here's how I did it:
This does the job... A bit ugly code, but at least the chopper will follow it.Code:// go there chopper doMove (position h2); waitUntil {moveToCompleted chopper}; chopper land "GET OUT"; chopper flyinHeight 0; // drop off and go home waitUntil {!allAboard}; chopper flyinHeight 5; chopper doMove (position h1); waitUntil {moveToCompleted chopper}; chopper land "LAND"; doStop chopper;
But I wonder if there is some better way to do it.
Especially the land and flyInHeight thingy... not so pretty. I really don't want to spawn waypoints.
HOME
Reply With Quote
I was thinking more like the choppers default behaviour more than flyInHeight, since height seems to vary depending on the terrain.