AI driving
AI driving
I was wondering if anybody knows how to get AI to drive around in a MP map even if you enter the gunner or side seat. I know it can be done and has. I just can't seem to find it...

Still somewhat new to this neighborhood, but I did a mod and made the AI drive around, all you have to do is use the script "(ai_go_to_vehicle <ai> <unit> <string>)" so if your Ai encounter group was called chief, and you had a standard warthog (you'd have to go into the properties panel and give the warthog an actual name under the names palette like "warthog1" or something) You would type: (ai_go_to_vehicle chief warthog1 "W-driver")
Hope this helps! it worked for me.
Hope this helps! it worked for me.
Kibito, you can indeed make the AI drive randomly around any map without the need for scripts. However, in the case of a warthog, they won't really come looking for the player. You'd basically need to hop in and risk being splattered.
I think you just need to check the AI flying box in the driver seat part of the warthog. And there may have been a few other boxes that needed checking, though I am not sure which these would have to be.
I think you just need to check the AI flying box in the driver seat part of the warthog. And there may have been a few other boxes that needed checking, though I am not sure which these would have to be.
ah thank you for the input. I will try that and see how it turns out. You know, of all the crap i've done to get this to work and I never checked the actual warthog....which is what I thought of the other day but forgot.
Edit* Turns out that was what it was. I can't believe I didn't think of it earlier. Thank you very much for pointing me in the right direction.
Edit* Turns out that was what it was. I can't believe I didn't think of it earlier. Thank you very much for pointing me in the right direction.

- jackson117
- Posts: 565
- Joined: Fri Mar 09, 2007 1:03 pm
- Location: OZ
- Cryticfarm
- Posts: 3611
- Joined: Sat Dec 09, 2006 7:23 pm
- Location: canada
- Contact:
- EchoRanger449
- Posts: 463
- Joined: Thu Aug 10, 2006 2:44 pm
- Location: It was all fun
- Contact:
![]() |
I remember when I scripted flying AI- that was pretty hard, but I got them to fly in a certain area near the player, until he switched areas, then they would go fly above him there.
Finally, after all the enemies were killed, I scripted them to go to a trigger, and once inside that trigger, they'd get out of the vehicle. I couldn't have done it without scripting and editing the warthog's AI section for the vehicle tag- I think it had to do with some radius or something. Flying AI rarely get to the waypoint, just give them a larger radius around the point. I am sure this holds true, though probably not as necessary, for driving AI.
Check this out-
http://www.youtube.com/watch?v=j6TQZtSkKrk
Finally, after all the enemies were killed, I scripted them to go to a trigger, and once inside that trigger, they'd get out of the vehicle. I couldn't have done it without scripting and editing the warthog's AI section for the vehicle tag- I think it had to do with some radius or something. Flying AI rarely get to the waypoint, just give them a larger radius around the point. I am sure this holds true, though probably not as necessary, for driving AI.
Check this out-
http://www.youtube.com/watch?v=j6TQZtSkKrk