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 »A.I.

Author Topic: A.I. (6 messages, Page 1 of 1)
Moderators: Dennis

Frankie The Grunt
Joined: Jun 11, 2009

Murphy the Grunt coming soon!


Posted: Sep 22, 2009 05:51 PM    Msg. 1 of 6       
Okay, my computer refuses to download anything from Halo maps. Anyone willing to explain how to get A.I. to drive vehicles?


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Sep 22, 2009 06:22 PM    Msg. 2 of 6       
1) Make sure they have the animations to enter the vehicle
2) Either add them in as a built in gunner, or script them in.


Frankie The Grunt
Joined: Jun 11, 2009

Murphy the Grunt coming soon!


Posted: Sep 22, 2009 06:37 PM    Msg. 3 of 6       
I don't know how to script.


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Sep 22, 2009 06:43 PM    Msg. 4 of 6       
Then add them in as built in gunners.


Co1t3r
Joined: Dec 13, 2008


Posted: Sep 27, 2009 08:00 PM    Msg. 5 of 6       
If you want to fix your downloading files problem look through this page:

http://hce.halomaps.org/index.cfm?nid=320


Polamee
Joined: Feb 25, 2008

MP2SPMT's founder


Posted: Sep 28, 2009 07:04 AM    Msg. 6 of 6       
For the AI driving vehicles:

First off, if you want the AI to drive a vehicle it does not have animations for, such as an Elite driving hog, you need it to have animations. The original Elites only have anims for Ghosts, Banshees and Turrets.

Next, you would want the AI to get inside the vehicle after spawning it. There are main 2 ways. The first is the command list method, and the second is vehicle_load_magic. There are other methods, however these 2 are the easiest.

Personally I like vehicle_load_magic. I made a tutorial on this sometime back. You'll need to know how to script first. Look at my 'further reading' list below to find out tutorials.



Quote: Of course, you want your dropship to drop off enemies/allies, so you should
use a handy command called vehicle_load_magic
First off, you need a named vehicle and an AI squad that you want to get
inside the vehicle (this works for any vehicle). Then, type in this for your script
sythax:
(vehicle_load_magic (ai_actors
/))
Note that every vehicle has its own unique seat label for every seat, and you
have to check those in Guerilla.
For example, if my AI encounter name was ‘fliers’ and squad name was
‘shee’, and I wanted the AI in the squad ‘shee’ to get into a Banshee driver seat.
Name your banshee, ‘shee’.
(vehicle_load_magic flier B-driver (ai_actors fliers/shee))
…..as the seat label is B-driver
To get the ppl out of the vehicle, use the vehicle_unload command.

- From my tutorial.

Further Reading:
http://hce.halomaps.org/index.cfm?fid=2298 - Fixing up those vehicles which AI don't drive correctly

http://forum.halomaps.org/index.cfm%3Fpage=topic&topicID=22698 - Driving vehicles on command lists.

http://hce.halomaps.org/index.cfm?fid=2879 - Getting a script to work.

http://hce.halomaps.org/index.cfm?fid=4315 - My tutorial

http://hce.halomaps.org/index.cfm?fid=2809 - More scripting commands. Some can be used for AI as well.

I made this for some other guy who wanted Elites to drive vehicles. Here comes the command list method (for those who are either too lazy or can't script):

1. Create your AI squad encounter. Say you create an encounter of elites.
2. Go to that little option called 'command list' underneath 'encounters' in the 'AI' option.
3. Once you have selected the Command List option, create a new instance. Name it 'Vehicle' or something similar.
4. Go to the properties tab and tick 'Allow initiative' and 'allow targeting'
4. Open the new instance and select 'Commands'. Create a new command by selecting 'new instance'
5. Go to the properties tab of your new command.
6. Open up all the possible commands ('atom type')
7. Select the 'Vehicle' option.
8. Set which seat you want your AI to get in. I usually prefer 'any seat'.
9. Set the Vehicle distance. I usually prefer 20-70. This is the distance of the vehicles your AI will get in.
10. Go back to your AI encounter. Highlight all the starting positions, or the ones that you want the AI which spawn on to get into vehicles.
11. Go to the properties tab and use your command list. (Changing it from 'none' to whatever your command list is called).
12. Save your map and restart it (in Sapien, of course!)
13. Observe. If you're AI don't get into the vehicles, its beacuse either
a. You didn't do the above procedure correctly.
b. The Vehicles are too far away or out of reach.
c. Its not for their type/they have no animation. Its impossible to get grunts onto Banshees without creating an animation and changing the AI file, for example.
d. There are no vehicles.

 

 
Previous Older Thread    Next newer Thread







Time: Thu January 19, 2023 7:42 AM 141 ms.
A Halo Maps Website