Jump to content
Sign in to follow this  
tryteyker

Preventing planes from taking off from an airport

Recommended Posts

Hi,

my question is pretty simple, I'm trying to prevent the AI from taking off from an airport until I tell them to. My problem is, that I assign a waypoint (move wp in this case) to them outside the airport, and sync it with a trigger. That trigger gets activated manually by me, but it doesn't really help since the AI takes off and basically hovers around that WP.

I'm just wondering how I can get them to stay at the airport and then move to the first WP once I tell them to via trigger.

Share this post


Link to post
Share on other sites

Place a HOLD waypoint at the nose of their helicopter as their first waypoint and synch that with your trigger instead.

Share this post


Link to post
Share on other sites

This works for helis but even a hold waypoint won't prevent an AI plane from taking off. I usually set the plane's fuel to 0 and allowCrewInImmobile true and have a trigger set the fuel back to 1 when I want the plane to take off. Alternatively you could try disableAI/enableAI "move"

Share this post


Link to post
Share on other sites

Your_Plane setFuel 0;

When you want it to takeoff: Your_Plane setfuel 1;

Share this post


Link to post
Share on other sites

Ahh, never do planes on the ground with AI, always just for show sitting there or spawn them in the air when i want them or i want them to take off right away. :)

If the players aren't going to be at the airport and actually see the take off why even bother with hold waypoints and all that? Just spawn then in the air over the field or off map.

Share this post


Link to post
Share on other sites

Works just great, thanks. Another question (before I open a completely new thread), how do I get my planes to ONLY engage specific targets? I basically just want to use these planes (3 A-10s) to engage 3 tanks, and not kill off the whole village full with insurgents.

@kylania I guess I could do that, right now it's like, they have to fly from Rasman to Loy Manara, so basically over the whole map. Wouldn't be an issue, if I wouldn't be forced to use Chinooks as transport helicopters for the platoons, since Ospreys won't even bother landing correctly, they just fly over everything constantly. :L

Share this post


Link to post
Share on other sites

Why not start the players at Rasman as the Osprey's fly away? :) Best of both worlds. You get your Ospreys and the players get to action 5 minutes sooner and no need for setFuel or waypoints or any of that.

Share this post


Link to post
Share on other sites

Well, the mission is basically laid out like this, the player inserts via HALO, takes out 1 AA tripod (wich spawns at a random location) and then calls in fro the Ospreys to do the rest. That's why the players don't start at the airport (and it's a 2 player coop mission really)

Share this post


Link to post
Share on other sites

Even easier. Check out my BattleZone port where I have made AirTrafficControlRabbitTM! Basically spawns a rabbit on the apron that the aircraft will not run over if the airstrip is in use. I can have a series of aircraft taking off, taxiing and landing with no crashes at all.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×