A Community discussion forum for Halo Custom Edition, Halo 2 Vista, Portal and Halo Machinima

Home  Search Register  Login Member ListRecent Posts
  
 
»Forums Index »Halo Custom Edition (Bungie/Gearbox) »Halo CE Technical / Map Design »Making A.I. use vehicles.

Author Topic: Making A.I. use vehicles. (15 messages, Page 1 of 1)
Moderators: Dennis

Pepzee
Joined: Sep 9, 2010

Retired Halo Modder


Posted: Apr 30, 2011 03:12 PM    Msg. 1 of 15       
Hey all,

I have ran into trouble making A.I. use vehicles. I hear there are multiple ways, and the way I have tried is command lists. However those don't appear to work. When I place the A.I. and put the command list on him, he just ignores the vehicle.

I did everything right, I put "vehicle" as the atom type, made it "any seat." And put the distance as 30.

Is there another way to make an A.I. drive a vehicle that I am unaware of?

I'm trying to make an elite drive a wraith, but I'm not sure if it makes any difference what vehicle he is driving.

Thanks.


milkkookie
Joined: Aug 10, 2010

:)


Posted: Apr 30, 2011 03:18 PM    Msg. 2 of 15       
i used a script to make them spawn in the driver seat of the vehicle and uncheck flying in the vehicle tag. then i made a command list for them to follow a path. simple
Edited by milkkookie on Apr 30, 2011 at 08:24 PM


Pepzee
Joined: Sep 9, 2010

Retired Halo Modder


Posted: Apr 30, 2011 03:23 PM    Msg. 3 of 15       
You can use a script?

What script?


milkkookie
Joined: Aug 10, 2010

:)


Posted: Apr 30, 2011 03:51 PM    Msg. 4 of 15       
(script startup ANYNAME
(vehicle_load_magic NAMEVEHICLE "" (ai_actors ENCOUNTER/SQUADS))
)
it only works at the beginning. maybe if you change startup to continuous it will work for the whole game.
Edited by milkkookie on Apr 30, 2011 at 03:53 PM


Pepzee
Joined: Sep 9, 2010

Retired Halo Modder


Posted: Apr 30, 2011 07:14 PM    Msg. 5 of 15       
I put the script in and it didn't do anything. The A.I. just walked past the vehicle as if it wasn't there.

The script compiled correctly, but it didn't do anything. Weird. Any other ways to get around this? I don't understand why command lists don't work either. I must be doing something wrong. I just don't know what.

Thanks for your help so far though.


The Cereal Killer
Joined: Mar 18, 2011

Scripts, AI, cutscenes, ui_widgets, animation.


Posted: Apr 30, 2011 07:38 PM    Msg. 6 of 15       
Here is the tutorial I wrote on AI air support, you can apply the same processes to any vehicle with ai: http://hce.halomaps.org/index.cfm?fid=5847


Mysterion
Joined: Aug 9, 2008

Nice shot, but too bad your @$$ just got SACKED!!!


Posted: Apr 30, 2011 08:01 PM    Msg. 7 of 15       
Hack one of my maps...just run a search for mysterion. I have AI flying jets, banshees, wraiths, scorpions, warthogs, ghosts, and firing turrets.

The problem in always using load magic, is that the AI don't enter a vehicle naturally.
Edited by Mysterion on Apr 30, 2011 at 08:02 PM


UBE Chief
Joined: Sep 28, 2009

Raising the bar, one kill at a time.


Posted: Apr 30, 2011 08:14 PM    Msg. 8 of 15       
I decided to mess around with AI driving vehicles in one of my older maps, and all I did was give the Elite a command line to get in any seat of any vehicle within it's range (0, in other words). I compiled the map, went ingame, and found the Elite driving the Ghost.

I can give you the map if you want to have a look.

As it was just a random thing I wanted to do, you can do all your experiments on it - the map is big enough for you to do pretty much anything in there, but not large enough to be the size of Hugeass/Coldsnap.


milkkookie
Joined: Aug 10, 2010

:)


Posted: Apr 30, 2011 08:22 PM    Msg. 9 of 15       
ahha after ten minutes of trying to remember i got it.
open vehicle tag
and check these.
http://img830.imageshack.us/img830/450/vehicle.jpg

now make sure the script is working, the ai should spawn inside the vehicle.
make a command list like this one.
http://img59.imageshack.us/img59/7821/commandn.jpg


each number is like a checkpoint that he/she/it will go trough. dont make them to far or to close
and dont make points behind the ai because it can use reverse.(dont use any commands to enter the vehicle)
i might of forgotten (like always) some things if it dosent work tell me

it only works using startup it doesn't work with continuous
Edited by milkkookie on Apr 30, 2011 at 08:35 PM


Pepzee
Joined: Sep 9, 2010

Retired Halo Modder


Posted: Apr 30, 2011 09:03 PM    Msg. 10 of 15       
@The Cereal Killer, alright I'll take a look into it. But I want the vehicle to spawn right away, if I remember correctly your process requires me to press the flashlight button in order for it to work. Also, do I need those special .actor_variant tags? I just want an elite to drive a wriath, and those tags are not elites.


@Mysterion I cannot extract scripts with the HEK+. So that's going to be a problem. I'll take a look at the maps though, and try and see what you did.


@UBE_Chief, I have tried this at least 10 times. But I did it again just to double check and it still did not work. Sure, send me the map, I'll look at it but my hopes are not to high for this method. Walk me through step-by-step for this method, maybe I'm doing something incorrectly.


@milkkookie, I have no clue how to create those command lists. I created the command to allow the player into the vehicle, but I have no clue how to create all of that "go to keep moving" stuff.


milkkookie
Joined: Aug 10, 2010

:)


Posted: Apr 30, 2011 09:18 PM    Msg. 11 of 15       
its easy make a command and go where it says points and right click where you want the ai to go and keep putting more, a bit apart from each other until you make like "road" and get to where you want the ai to stop. and then go to commands and next to atom type drop to the second one and choose go to and click new instance and next to modifier choose keep_moving and next to destination chose 0. and keep making new ones until you reach the number of points you previously set. and on the last one set it to stop at point.


maybe ill upload a video tomorrow. a lot of ppl ask, and its easy to do but hard to explain in words.
Edited by milkkookie on Apr 30, 2011 at 09:22 PM
Edited by milkkookie on Apr 30, 2011 at 09:23 PM


The Cereal Killer
Joined: Mar 18, 2011

Scripts, AI, cutscenes, ui_widgets, animation.


Posted: Apr 30, 2011 10:16 PM    Msg. 12 of 15       
You don't need those specific tags, and you can remove the sleep_until in the script if you want all of it to happen without prompt. As I said, it requires adaptation.


Pepzee
Joined: Sep 9, 2010

Retired Halo Modder


Posted: May 1, 2011 12:45 AM    Msg. 13 of 15       
Alright, thanks, I was able to get it working, with your guys help. It was very complicated though, those command lists and scripts.

Thanks again.

Now to go create another tread on the next set of questions...


Mysterion
Joined: Aug 9, 2008

Nice shot, but too bad your @$$ just got SACKED!!!


Posted: May 29, 2011 02:51 PM    Msg. 14 of 15       
pepzee,

In the future, try using the following utility for script extraction:

http://hce.halomaps.org/index.cfm?fid=5478


UBE Chief
Joined: Sep 28, 2009

Raising the bar, one kill at a time.


Posted: May 30, 2011 09:26 AM    Msg. 15 of 15       
Argh, I forgot to upload the map I was supposed to send you. My bad. I'm uploading right now, and should have the DL link shortly. Sorry again Pepzee D:

E: DL link - http://www.mediafire.com/?8ov8bcnhpd3ln2k
Edited by UBE Chief on May 30, 2011 at 09:38 AM

 

 
Previous Older Thread    Next newer Thread







Time: Thu January 19, 2023 3:39 AM 156 ms.
A Halo Maps Website