Over the past few days I've been troubleshooting a script iv cobbled together. The goal is to have a plane land at an airfield. Wait until a condition is met, then take off again.
This is what I have so far, I've cut out the section where I spawn the aircraft and the AI to fly it as it works fine.
After the plane lands it does jack. I'v tried to get the pilot to exit and re-enter the aircraft using ( "doGetOut _pilot;" then after a delay "_pilot moveindriver _aircraft;" ). I've tried turning the engine off and on again.
But it ignores anything after "_aircraft landAt 1;"
I've found if i kill the driver I still cant move the aircraft without getting out and back in. Just like when the landing autopilot is used. But apart from that I'm at a loss of what to try.
Question
kheldar125
Another day another question it seems.
Over the past few days I've been troubleshooting a script iv cobbled together. The goal is to have a plane land at an airfield. Wait until a condition is met, then take off again.
_aircraft landAt 1; sleep 10; waitUntil { fly == "true"}; _wp1 = _aigroup addWaypoint [[5000.0,2.0,200],0]; _wp1 setWaypointType "MOVE"; _wp1 setWaypointBehaviour "CARELESS"; _wp1 setWaypointCompletionRadius 5; _wp1 setWaypointSpeed "FULL" ; _wp1 setWaypointCombatMode "BLUE"; _aircraft flyInHeight 200;
This is what I have so far, I've cut out the section where I spawn the aircraft and the AI to fly it as it works fine.
After the plane lands it does jack. I'v tried to get the pilot to exit and re-enter the aircraft using ( "doGetOut _pilot;" then after a delay "_pilot moveindriver _aircraft;" ). I've tried turning the engine off and on again.
But it ignores anything after "_aircraft landAt 1;"
I've found if i kill the driver I still cant move the aircraft without getting out and back in. Just like when the landing autopilot is used. But apart from that I'm at a loss of what to try.
Any thoughts guys?
Cheers
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now