AI in vehicles?
-
- Posts: 5426
- Joined: Sat Jul 24, 2004 12:12 pm
- Location: I'm a Paranoid
- Contact:
![]() |
![]() |
-
- Posts: 119
- Joined: Mon May 30, 2005 7:34 am
-
- Posts: 5426
- Joined: Sat Jul 24, 2004 12:12 pm
- Location: I'm a Paranoid
- Contact:
![]() |
![]() |
-
- Posts: 42
- Joined: Tue Jun 08, 2004 2:52 am
-
- Posts: 5426
- Joined: Sat Jul 24, 2004 12:12 pm
- Location: I'm a Paranoid
- Contact:
![]() |
![]() |
-
- Posts: 42
- Joined: Tue Jun 08, 2004 2:52 am
Scripting,
Make a new folder in data\levels\mapname folder called "scripts". Open a new notepad document and make a script using this format:
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.
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)
)
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.

-
- Posts: 5426
- Joined: Sat Jul 24, 2004 12:12 pm
- Location: I'm a Paranoid
- Contact:
![]() |
![]() |
-
- Posts: 42
- Joined: Tue Jun 08, 2004 2:52 am