Jump to content

Sign in to follow this  
TraxusIV

AI Pilot Scramble and Engage script

Recommended Posts

I did a quick search and didn't see anything specifically matching what I'm looking for, so I thought I'd chance to ask:

I'm trying to get an ai pilot on the tarmac to enter an empty heli, take off, and engage enemies when the pilot's behavior gets changed to COMBAT. I've got a trigger properly set up to get him in, and I know how to assign waypoints programatically, so I could whip this out the old fashioned way, but I thought, this is such a basic idea, surely someone has already written a script package or module or something to do this.

So my question is, does anyone know of any nice prepackaged ways to effect a scramble and engagement of enemies?

Thanks,

Trax

Share this post


Link to post
Share on other sites

Ok, so my solution to this was to link up my pilots with a dynamic patrol skirmish module. Then, in the pilot's init line, put

this stop true;

Last, make a trigger, with conditions

isServer && behaviour pilotNamedBob == "COMBAT";

and On Act

pilotNamedBob stop false; pilotNamedBob assignAsDriver daChoppa; [pilotNamedBob] orderGetIn true;

Quick, pretty easy, and it works. The one thing I haven't been able to get them to do is to stay sitting, so they will be just standing around wherever you place them until they go into combat mode. When activated they begin patrolling the designated dynamic patrol route. They will engage the enemy, but won't chase them unless they're in another air vehicle. Ground units that get their attention will be strafed as they pass by on their patrol route.

Trx

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  

×