AI in vehicles?

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




Pi Collaborator

Posts: 5426
Joined: Sat Jul 24, 2004 12:12 pm
Location: I'm a Paranoid
Contact:

AI in vehicles?

Post by Patrickssj6 »

How do i get AI in vehicles?I know thatTheGhost did it
...left for good
TheRealStick





Posts: 119
Joined: Mon May 30, 2005 7:34 am

Post by TheRealStick »

Yeah but TheGhost = Halo CE Modding God
[QUOTE=Yomama]I'm an Admin at Halomods and I don't like it over there.[/QUOTE]
Patrickssj6




Pi Collaborator

Posts: 5426
Joined: Sat Jul 24, 2004 12:12 pm
Location: I'm a Paranoid
Contact:

Post by Patrickssj6 »

Well TheGhost was once also a n00b
...left for good
FireScythe





Posts: 42
Joined: Tue Jun 08, 2004 2:52 am

Post by FireScythe »

Two ways i know of, scripting and command lists.
Patrickssj6




Pi Collaborator

Posts: 5426
Joined: Sat Jul 24, 2004 12:12 pm
Location: I'm a Paranoid
Contact:

Post by Patrickssj6 »

Yes but tell me
...left for good
FireScythe





Posts: 42
Joined: Tue Jun 08, 2004 2:52 am

Post by FireScythe »

Scripting,

Make a new folder in data\levels\mapname folder called "scripts". Open a new notepad document and make a script using this format:

Code: Select all

(script startup scriptname
          (ai_go_to_vehicle encountername/squadname vehiclename driver)
)
The "driver" part can be passenger or gunner aswell.
If you want the ai to continually get into the vehicle use continuous instead of startup

Then save the file as whatever you want in the scripts folder but you must change the file extension to .hsc

Go into sapien and bring up the console and put "scripts_recompile" in OR go file compile scripts.

if you put script_doc into the sapien console itll make a hs_doc.txt in your halo CE directory which has loads of scripting commands you can use.

Command lists,

Open sapien and make your ai, vehicles and stuff.
Navigate in the hierarchy view to mission\ai\command lists and make a new instance. Name the command list then expand it and make a new instance in "commands".

In the properties palette, change the atom type to vehicle and the modifier to whatever seat you want. The distance tells the ai to get in the seat if it is withing this distance AT SPAWN, it will only run the command list once.

To get the ai to actually use the command list you select an ai's starting location and select your new command list in the "command list" drop down box.


Hope that helps, i learned all the scripting stuff of the gearbox forums so it might be worthwhile looking there. :)
Patrickssj6




Pi Collaborator

Posts: 5426
Joined: Sat Jul 24, 2004 12:12 pm
Location: I'm a Paranoid
Contact:

Post by Patrickssj6 »

tnak you so much.Fnally not a n00b :P
But do they drive them?
...left for good
FireScythe





Posts: 42
Joined: Tue Jun 08, 2004 2:52 am

Post by FireScythe »

Yeah, they drive around the move positions and firing points, except for the scorpion and warthog, never been able to get them to drive those. Ghost wraith and banshee are ok though.
Post Reply