Page 1 of 1

How do i get my AI into vehicles?!?!?!?!?!?!?!?!?!

Posted: Thu Jun 23, 2005 10:49 am
by the steve
I asked about this a week ago but nobody replied, so i deleted that one. Does anybody know how to do this? I didn't see any flags about it in the actor and actor variant tags except "Get in vehicles with player". I want them to get in banshess or at least ghosts and attack me by themselves.
HELP PLEASE.

Posted: Thu Jun 23, 2005 4:51 pm
by [users]axem
Under the seats section in vehicle tags it says added variaints or somthing like that. Just link that path way to your actv tags you want. If you want them to drive ghost then, you wont have much luck if you dont have a clue on how to script things with sapien. But if you make say a turret or put them in the gunner's spot in a warthog then they will shoot you or other players perfectly.

Its kinda funny to line up 4 tanks with some perfect actv tags and get in a hog then try driving right by them.

Posted: Thu Jun 23, 2005 5:14 pm
by the steve
Thanks for replying. I really just needed them to operate turrets for my overlord map anyway.

EDIT:I don't see the added variants section in seats :!:

Posted: Fri Jun 24, 2005 2:18 pm
by [users]axem
Its somthinglike that, under seats where the hud interfrace section is it says somthing about added actors or somthing. I am on vacation right now so I cant double check.

P.S. It should the next part of the area where you check flags for the vehicle seats and stuff.

Command Lists

Posted: Mon Jul 25, 2005 12:30 pm
by FireScythe
(I apologise if this is classed as a "bump", not sure on the time frame for that)

The way i use to get AI to use vehicles is by using the "command Lists" in the scenario tag.

If you go to the command lists header and click add, itll add a new command list (obviously). You can give it a name to select later in the AI's Starting Locations header.
Under the second header "commands" click add to add a new command. To get an AI to get in the gunners seat select "vehicle" in the drop down menu under atom type. With the atom modifier on zero the AI will get in a vehicle as any-non-driver, changing the atom modifier dictates the seat to get in.
0 = any-non-driver
1 = gunner
2 = passenger
3 = driver
4 = any-seat
So to have a gunner youd use atom modifier 1. The parameter1 value is the distance the vehicle has to be in for the AI to run and get in (setting at 0.0 is infinite).
The "point" values arent used for vehicles as far as i know. Animation, script and recording i dont know about either.
The drop down command box from what i can tell points to the next command to jump to if you dont want it to go to the next command in line.
I havent fully tested the object names bit, but i think you can use it to say which vehicle to get into, by adding an object name further up the scenario tag, then selecting the name under the vehicles header.

To get the AI to drive the ghost you use an atom modifier of 3, but you have to have another command "initiative" with an atom modifier of zero after it. The ghost should then happily hover around the firing positions/move positions (i cant remember which, will look into it)

PS. Sorry if this is widely known, just thought id post it :)

Posted: Mon Jul 25, 2005 1:56 pm
by the steve
thanks, i will look deeper into that. So that gives me the ability to have a ghost that is on MY team driving around?

Posted: Mon Jul 25, 2005 2:06 pm
by FireScythe
Yeah should do, i dunno how to get them to follow you though, i think theyll just go around the move positions.

EDIT: It is the move positions.

I have a working test map, and the scenario file if you want it.

Posted: Sat Aug 13, 2005 6:06 am
by ali954
man im confused. some1 needs to make a tut for this.