Page 1 of 1

AI in vehicles?

Posted: Sat Aug 20, 2005 7:20 am
by Patrickssj6
How do i get AI in vehicles?I know thatTheGhost did it

Posted: Mon Aug 22, 2005 1:44 pm
by TheRealStick
Yeah but TheGhost = Halo CE Modding God

Posted: Mon Aug 22, 2005 4:06 pm
by Patrickssj6
Well TheGhost was once also a n00b

Posted: Tue Aug 23, 2005 7:58 am
by FireScythe
Two ways i know of, scripting and command lists.

Posted: Tue Aug 23, 2005 8:01 am
by Patrickssj6
Yes but tell me

Posted: Tue Aug 23, 2005 11:39 am
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. :)

Posted: Tue Aug 23, 2005 2:59 pm
by Patrickssj6
tnak you so much.Fnally not a n00b :P
But do they drive them?

Posted: Wed Aug 24, 2005 1:28 am
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.