
Dumb AI
Joined: Sep 18, 2011
Dead.
|
Posted: May 11, 2012 09:34 PM
Msg. 1 of 7
I'm struggling with scripting.Does this make AI units in the encounter "allies_1" get in the warthog's gunner seat. This is the part I don't understand: <ai> <unit> <string> (ai_go_to_vehicle allies_1 warthog gunner) <---Mine (ai_go_to_vehicle <ai> <unit> <string>) <---Base Script Command
|
|
|

andres
Joined: Oct 26, 2010
|
Posted: May 11, 2012 11:23 PM
Msg. 2 of 7
try this....
(script startup hog_driver (object_create_anew warthog_1) (object_create_anew warthog_2) (ai_place turret_hog ) (ai_attach driver_2 marines) (ai_attach driver_1 marines) (vehicle_load_magic warthog_1 "gunner" (ai_actors turret_hog/gunner )) (vehicle_load_magic warthog_1 "passenger" (ai_actors turret_hog/passenger )) (vehicle_load_magic warthog_2 "gunner" (ai_actors turret_hog/gunner1 )) (vehicle_load_magic warthog_2 "passenger" (ai_actors turret_hog/passenger1 )) (unit_enter_vehicle driver_1 warthog_1 w-driver) (unit_enter_vehicle driver_2 warthog_2 w-driver) (ai_command_list_by_unit driver_1 warthog_1) (ai_command_list_by_unit driver_2 warthog_2) )
|
|
|

Dumb AI
Joined: Sep 18, 2011
Dead.
|
Posted: May 12, 2012 12:29 AM
Msg. 3 of 7
Eh,that's not the effect I want.
|
|
|

jawa
Joined: Jun 26, 2011
Utinni!
|
Posted: May 12, 2012 10:17 AM
Msg. 4 of 7
Quote: --- Original message by: Dumb AI I'm struggling with scripting.Does this make AI units in the encounter "allies_1" get in the warthog's gunner seat. This is the part I don't understand: <ai> <unit> <string> (ai_go_to_vehicle allies_1 warthog gunner) <---Mine (ai_go_to_vehicle <ai> <unit> <string>) <---Base Script Command I think your script is correct you are just using the wrong name for the position. I believe w-gunner is the name you need. ai_go_to_vehicle allies_1 warthog w-gunner This should make ai group "allies_1" get into the gunner position of a warthog named "warthog" Edited by jawa on May 12, 2012 at 10:18 AM
|
|
|

Dumb AI
Joined: Sep 18, 2011
Dead.
|
Posted: May 12, 2012 03:35 PM
Msg. 5 of 7
When I compile scripts and the map,the script doesn't work for some reason.It said that it compiled successfully for both of them but the script's effects(like spawning AI) isn't working.
|
|
|

Sciophobiaranger
Joined: Jun 30, 2010
Silent, Swift, Deadly. God bless America.
|
Posted: May 12, 2012 08:28 PM
Msg. 6 of 7
Quote: --- Original message by: Dumb AI I'm struggling with scripting.Does this make AI units in the encounter "allies_1" get in the warthog's gunner seat. This is the part I don't understand: <ai> <unit> <string> (ai_go_to_vehicle allies_1 warthog gunner) <---Mine (ai_go_to_vehicle <ai> <unit> <string>) <---Base Script Command ai - (Encounter name/ squad name) unit - (Vehicle name) string - ( Vehicle Seat Code/Name, Ex. W-Gunner) Gunner wouldn't be correct for a vanilla warthog, it would be W-Gunner. Here's a script from my sp that uses this: (ai_go_to_vehicle bk2/1 ext_a_pelican_jeep w-gunner) Breakdown of the script: Bk - Encounter name 1 - squadname ext_a_pelican_jeep - Warthog name W-Gunner - Gunner Seat Name/Code. This works for me just perfectly; I think you got the seats name wrong. Edited by Sciophobiaranger on May 12, 2012 at 08:33 PM
|
|
|

Dumb AI
Joined: Sep 18, 2011
Dead.
|
Posted: May 12, 2012 08:52 PM
Msg. 7 of 7
Sorry for not being specific about the script I was compiling.I was compiling a firefight script(it didn't include the script that I mentioned in the OP).
|
|
|