AI driving

Discuss stuff related to HaloCE (for modding, go to the HEK General forum).
Post Reply
User avatar
kibito87




Stylist Connoisseur Advisor Bloodhound
Droplet Articulatist 500

Posts: 3461
Joined: Mon Feb 21, 2005 7:49 pm
Location: Ohio
Contact:

AI driving

Post by kibito87 »

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...
Image
User avatar
xbox




Blacksmith

Posts: 2022
Joined: Wed Jul 28, 2004 3:28 pm
Location: Hi.

Post by xbox »

I got it to work by making the AI spawn in the vehicle and then placing markers for him to follow. sometimes it worked and sometimes it didn't... I don't know why.
cain532





Posts: 35
Joined: Wed Sep 15, 2004 4:34 pm

Post by cain532 »

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.
L0d3x




Articulatist 250

Posts: 454
Joined: Sat Aug 18, 2007 3:32 am

Post by L0d3x »

Cain, doing what you did let's the AI drive around an exact pre set path?
Did you test it on warthogs?

I only got it to work with ghosts and wraiths so far.
User avatar
kibito87




Stylist Connoisseur Advisor Bloodhound
Droplet Articulatist 500

Posts: 3461
Joined: Mon Feb 21, 2005 7:49 pm
Location: Ohio
Contact:

Post by kibito87 »

I'm pretty positive the way i'm looking to do this is without the need of scripting...I'm still searching. I need to get ahold of somebody that will explain it...I know for sure.
Image
L0d3x




Articulatist 250

Posts: 454
Joined: Sat Aug 18, 2007 3:32 am

Post by L0d3x »

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.
User avatar
kibito87




Stylist Connoisseur Advisor Bloodhound
Droplet Articulatist 500

Posts: 3461
Joined: Mon Feb 21, 2005 7:49 pm
Location: Ohio
Contact:

Post by kibito87 »

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.
Image
User avatar
jackson117





Posts: 565
Joined: Fri Mar 09, 2007 1:03 pm
Location: OZ

Post by jackson117 »

a better question is can someone tell me how to make better driving ai because i notice they crash alot when thier in combat
Image
rerout343





Posts: 7
Joined: Sun Aug 24, 2008 3:51 pm
Contact:

Post by rerout343 »

Why do people always bump month old topics with pointless posts :?
User avatar
xbox




Blacksmith

Posts: 2022
Joined: Wed Jul 28, 2004 3:28 pm
Location: Hi.

Post by xbox »

It is a legitimate question in a forum that doesn't have much activity. This post was only third from the top.
rerout343





Posts: 7
Joined: Sun Aug 24, 2008 3:51 pm
Contact:

Post by rerout343 »

Guess your right, I posted without thinking
User avatar
Cryticfarm





Posts: 3611
Joined: Sat Dec 09, 2006 7:23 pm
Location: canada
Contact:

Post by Cryticfarm »

There a tut in the ghost's tutorial resource made by kirby I believe. So ummm, check that. All I know is that you have to modify some actv's.
User avatar
EchoRanger449




Articulatist 250

Posts: 463
Joined: Thu Aug 10, 2006 2:44 pm
Location: It was all fun
Contact:

Post by EchoRanger449 »

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
Post Reply