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 »Need help with commands/scripting

Author Topic: Need help with commands/scripting (6 messages, Page 1 of 1)
Moderators: Dennis

Headhunter09
Joined: May 6, 2008

This is the truth.


Posted: Jan 11, 2009 08:32 PM    Msg. 1 of 6       
it is telling me my left paren is unmatched, and I know it isn't so what does that indicate?


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Jan 11, 2009 09:52 PM    Msg. 2 of 6       
Show your script. It means that there is an error somewhere.


Headhunter09
Joined: May 6, 2008

This is the truth.


Posted: Jan 12, 2009 05:05 PM    Msg. 3 of 6       
(script startup opening
(begin
(vehicle_load_magic cine_tank "driver" (ai_actors cine_driver))
(cinematic_start)
(camera_control 1)
(camera_set cut1 100)
(sleep 60)
(camera_set cut2 100)
(sleep 90)
(camera_set cut3 100)
(sleep 0)
(camera_set cut4 100)
(ai_command_list cine_driver cine_tank)
(sleep 15)
(vehicle_unload cine_tank "")
(sleep 180)
(camera_set cut5 100)
(sleep 180)
(camera_control 0)
(show_hud 0)
(cinematic_set_title test_range)
(sleep 230)
(cinematic_stop)
(show_hud 1)
(game_save)
(sleep_until (= (vehicle_gunner (unit (list_get (players) 0)) 1) 15)
(ai_command_list cine_driver drive)
)
)


Me KS
Joined: Feb 2, 2008

Desire is Reality. Xfire: jetmaster23


Posted: Jan 12, 2009 07:00 PM    Msg. 4 of 6       
Quote: --- Original message by: Headhunter09

(game_save)
(sleep_until (= (vehicle_gunner (unit (list_get (players) 0)) 1) 15)
(ai_command_list cine_driver drive)
)
)


There's the problem. I understand why you think vehicle_gunner does that, but that's not how vehicle_gunner is used.

Just for future reference, vehicle_gunner returns the gunner biped of any vehicle specified as either an "object" or a "unit", which is what the "unit" in vehicle_gunner is for, not for bipeds. For example:

(unit_kill (vehicle_gunner g_warthog))

Would kill the gunner of g_warthog. It's a pretty useful command, but it's not what you want here.

What you do want here is "vehicle_test_seat" or "vehicle_test_seat_list":

(vehicle_test_seat_list "vehicle" "string" "object_list")
tests whether the named seat has an object in the object list

(vehicle_test_seat "vehicle" "string" "unit")
tests whether the named seat has a specified unit in it

For the "list" one, you could use "(players)" for "object_list" since it's an SP map with only one player and there would be less to type, but if you want to refer to player 0 specifically then you use the non-list one. So, here's that line of code fixed:

(sleep_until (= (vehicle_test_seat "vehicle name" "seat label" (unit (list_get (players) 0))) 1) 15)

Just fill in "vehicle name" and "seat label" because I don't know what vehicle you meant to test for.


Headhunter09
Joined: May 6, 2008

This is the truth.


Posted: Jan 12, 2009 07:26 PM    Msg. 5 of 6       
thanks again!


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Jan 12, 2009 07:26 PM    Msg. 6 of 6       
I'm assuming its warthog. Replace the seat label with W-Gunner.

 

 
Previous Older Thread    Next newer Thread







Time: Sat January 21, 2023 9:00 AM 157 ms.
A Halo Maps Website