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 »How do I get AI to use vehicles?

Author Topic: How do I get AI to use vehicles? (8 messages, Page 1 of 1)
Moderators: Dennis

tylerp14
Joined: Oct 12, 2010

Ohai der...


Posted: Feb 20, 2011 09:58 PM    Msg. 1 of 8       
Hi, I want to get AI to use vehicles in my SP Map. Can somebody help?
I have a script code but i dont know what "<AI>" (Meaning the encounter or something) or "<vehicle>" or "<command list>" is. I know what the vehicle is, but do I do the name I made for that vehicle? And how do I do command lists? Thanks a lot if you can help.

(script startup forcetheai
(unit_enter_vehicle (unit (ai_actors (<AI>)0)) <vehicle> <seat>)
(ai_command_list_by_unit (unit (ai_actors (<AI>)0)) <command list>
)
Edited by tylerp14 on Feb 20, 2011 at 10:02 PM


Grant2498
Joined: Jan 10, 2011

Procrastinators UNITE!... Tomorrow...


Posted: Feb 20, 2011 10:43 PM    Msg. 2 of 8       
Hm, try the ai_go_to_vehicle command. Better yet, do vehicle_load_magic. BTW its modder from Xfire (mirrirsedge)


Muscl3r
Joined: May 22, 2010

dont pray 4 easy lives...pray to be STRONGER MEN


Posted: Feb 21, 2011 01:15 AM    Msg. 3 of 8       
(script startup forcetheai
(ai_go_to_vehicle ghost1 G-driver (ai_actors elites1/ghost1drive))
(ai_command_list elites1/ghost1drive to_war)
)

I think that'll work^

(script startup forcetheai
(vehicle_load_magic ghost1 G-driver (ai_actors elites1/ghost1drive))
(ai_command_list elites1/ghost1drive to_war)
)

that definitely will^


tylerp14
Joined: Oct 12, 2010

Ohai der...


Posted: Feb 21, 2011 03:41 AM    Msg. 4 of 8       
Not working.... I do this in my script:

(script startup drive1
(vehicle_load_magic cgun1 "" (ai_actors encounter_13/drive)
)


And it says:

this left parenthesis is unmatched.: (script startup drive1
[aidrive line 1] this left parenthesis is unmatched.: (script startup drive1


I need help...


rerout343
Joined: Aug 7, 2010

Targeted and Firing


Posted: Feb 21, 2011 04:26 AM    Msg. 5 of 8       
Quote: --- Original message by: tylerp14
Not working.... I do this in my script:

(script startup drive1
(vehicle_load_magic cgun1 "" (ai_actors encounter_13/drive)
)


And it says:

this left parenthesis is unmatched.: (script startup drive1
[aidrive line 1] this left parenthesis is unmatched.: (script startup drive1


I need help...

Found your problem.

(script startup drive1
(vehicle_load_magic cgun1 "" (ai_actors encounter_13/drive)) <--You were missing one here
)

Hope that helps


tylerp14
Joined: Oct 12, 2010

Ohai der...


Posted: Feb 21, 2011 02:29 PM    Msg. 6 of 8       
Yes that did help, but it still doesnt enter the vehicle...


tylerp14
Joined: Oct 12, 2010

Ohai der...


Posted: Feb 21, 2011 09:58 PM    Msg. 7 of 8       
... It helped you but not me...


Muscl3r
Joined: May 22, 2010

dont pray 4 easy lives...pray to be STRONGER MEN


Posted: Feb 22, 2011 03:48 AM    Msg. 8 of 8       
If you want an ai to enter a ghost, the drivers seat is labelled G-driver and make sure the ai squad only has one person in it

 

 
Previous Older Thread    Next newer Thread







Time: Thu January 19, 2023 1:51 AM 140 ms.
A Halo Maps Website