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 whole ai encounter and squad driving?

Author Topic: A whole ai encounter and squad driving? (12 messages, Page 1 of 1)
Moderators: Dennis

milkkookie
Joined: Aug 10, 2010

:)


Posted: Dec 27, 2010 01:23 AM    Msg. 1 of 12       
how do i make three ai of the same encounter and squad drive three vehicles in a certain path
or do i have to make differnt squads for each ai


rescue86k
Joined: Dec 13, 2010

Frog blast the vent core! -Marathon IS Halo


Posted: Dec 27, 2010 05:35 AM    Msg. 2 of 12       
I have never made ai drive along a path. Not yet. Plan to.

However I will tell you something related which might be the answer your looking for.

If more than 1 ai is trying to enter a vehicle at a given time (other than scripting them to "magically" enter the vehicle) then the first ai will do the command, and the rest will ignore it, moving onto the next command, regardless of how many encounters you have them in.

The solution is to seperate your vehicles and ai. Make some wait around a bit. Then enter the vehicle.

Example:
Ai gunner1 of warthog1 starts imediately.
Ai driver1 waits 10 seconds, then enters warthog1.

Ai gunner2 is 10 world units apart from Ai gunner1 , searching for a warthog2, only 2 world units from him, he is searching for vehicles 3 world units apart, so that he doesn't even think about entering warthog1. That would be bad.

Make sure searching radius for vehicles to enter is less than the distance of a second warthog.

If all units plan to enter the warthog then make gunner go, passenger waits 10 seconds, then he goes, then driver waits 20 seconds, and he goes.

Don't let more than 1 unit enter at a given time ;) Hope I helped


MoooseGuy
Joined: Aug 10, 2008

I Approve This Message.


Posted: Dec 27, 2010 05:51 AM    Msg. 3 of 12       
Or you could just use unit_enter_vehicle.
Edited by MoooseGuy on Dec 27, 2010 at 05:52 AM


milkkookie
Joined: Aug 10, 2010

:)


Posted: Dec 27, 2010 01:11 PM    Msg. 4 of 12       
wouldnt that make them go into the same vehicle
Edited by milkkookie on Dec 27, 2010 at 01:13 PM


rescue86k
Joined: Dec 13, 2010

Frog blast the vent core! -Marathon IS Halo


Posted: Dec 27, 2010 04:13 PM    Msg. 5 of 12       
I wouldn't disagree with mooseguy. Give it a try. Scripting units to magically enter a vehicle (entering seat names) can be done all at once. Mooseguys suggestion might work too, (i haven't tried it). All else fails, or your getting headaches, go with my solution. My solution deals with command lines in sapien, (get in vehicle within such radius).

;)


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Dec 27, 2010 05:07 PM    Msg. 6 of 12       
You can specify different squads from the same encounter in scripts by utilizing the /. For example, this would cause two different squads from the same vehicle to enter different vehicles:

(vehicle_load_magic vehicle1 "" (ai_actors encounter/squad1))
(vehicle_load_magic vehicle2 "" (ai_actors encounter/squad2))


milkkookie
Joined: Aug 10, 2010

:)


Posted: Dec 27, 2010 05:36 PM    Msg. 7 of 12       
thanks for all your help but ill take gamma's script he was the one who solved my other ai driving problem thanks dude. one question what does this mean ""
Edited by milkkookie on Dec 27, 2010 at 05:37 PM


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Dec 27, 2010 11:38 PM    Msg. 8 of 12       
The second parameter of the vehicle_load_magic command requires a seat, such as the driver or gunner. However, if you don't have a specific seat in mind, or don't know what to put, put "". This essentially causes the AI to go to first seat of the vehicle, no matter what vehicle it is. Usually, the first seat is the driver's seat, so using "" for most circumstances will suffice. That way, you don't have to go through a lot of inexplicably hard work.


milkkookie
Joined: Aug 10, 2010

:)


Posted: Dec 28, 2010 12:23 AM    Msg. 9 of 12       
thanks


Head Noob
Joined: Oct 3, 2010

This difficulty is for noobs! Mythic is for pros


Posted: Dec 28, 2010 02:14 AM    Msg. 10 of 12       
Also the make the ai follow a path use (ai_command_list encounter list). Make a list in sapien under ai/command_lists. This does not work for flying vehicle unless modded to.


MoooseGuy
Joined: Aug 10, 2008

I Approve This Message.


Posted: Dec 28, 2010 05:42 AM    Msg. 11 of 12       
If you want ai to appear in the seat instantly, use what Gamma said.
If you want ai to walk over and get in, use what I said.

It's all preference. I like to have ai walk over and get into stuff.


milkkookie
Joined: Aug 10, 2010

:)


Posted: Dec 28, 2010 03:15 PM    Msg. 12 of 12       
i does works for air vehicles i just use the scripts to get the ai to drive and use the sapien command list to make them follow the points in the air and i dint mod the banshee or hornet

 

 
Previous Older Thread    Next newer Thread







Time: Sat July 4, 2020 8:25 PM 188 ms.
A Halo Maps Website