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 Script Help with Sound Looping

Author Topic: Need Script Help with Sound Looping (7 messages, Page 1 of 1)
Moderators: Dennis

Mysterion
Joined: Aug 9, 2008

Nice shot, but too bad your @$$ just got SACKED!!!


Posted: Dec 11, 2010 12:43 PM    Msg. 1 of 7       
The following script allows for a siren to sound throughout a map when an AI pilot enters the seat of a jet:

(script continuous jetraidalert
(sleep_until (= (vehicle_test_seat_list mj3 "J-pilot" (ai_actors spartanpilot1)) true))
(sound_looping_start "sound\alarm\raid siren" none 0.5)
(sleep_until (= (vehicle_test_seat_list cb3 "B-driver" (ai_actors elitepilot1)) false))
(sleep_until (= (vehicle_test_seat_list mj3 "J-pilot" (ai_actors spartanpilot1)) false))
(sound_looping_stop "sound\alarm\raid siren")
)

How does one make the above script work to make the siren loop on a localized building, scenery object, etc.?


Muscl3r
Joined: May 22, 2010

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


Posted: Dec 11, 2010 03:47 PM    Msg. 2 of 7       
i was thinking sound environments but then you wouldn't be able to script it


Mysterion
Joined: Aug 9, 2008

Nice shot, but too bad your @$$ just got SACKED!!!


Posted: Dec 11, 2010 03:55 PM    Msg. 3 of 7       
I want an alert to begin from a sound loop attached to a scenery object in the red base when a blue pilot takes off, and vice-versa.


Muscl3r
Joined: May 22, 2010

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


Posted: Dec 11, 2010 10:30 PM    Msg. 4 of 7       
Okay found this in halo scripting bible:

(sound_looping_start )

So usually after the looping sound you'd put none but i guess you can attach it to an object. Not too sure about a cutscene flag tho


Polamee
Joined: Feb 25, 2008

MP2SPMT's founder


Posted: Dec 12, 2010 01:57 AM    Msg. 5 of 7       
Ok, so the sound looping start command has three parameters:

(sound_looping_start [sound directory] [object] [real])

Instead of putting 'none' as your object, place the name of the object you want the sound to emanate from.


MoooseGuy
Joined: Aug 10, 2008

I Approve This Message.


Posted: Dec 12, 2010 03:40 AM    Msg. 6 of 7       
Do it like this:

(script continuous jetraidalert
(sleep_until (= (vehicle_test_seat_list mj3 "J-pilot" (ai_actors spartanpilot1)) true))
(sound_looping_start "sound\alarm\raid siren" SIRENOBJECT 0.5)
(sleep_until (= (vehicle_test_seat_list cb3 "B-driver" (ai_actors elitepilot1)) false))
(sleep_until (= (vehicle_test_seat_list mj3 "J-pilot" (ai_actors spartanpilot1)) false))
(sound_looping_stop "sound\alarm\raid siren")
)


Mysterion
Joined: Aug 9, 2008

Nice shot, but too bad your @$$ just got SACKED!!!


Posted: Dec 12, 2010 07:15 PM    Msg. 7 of 7       
The actual script from the map I am working on is as follows:

(script continuous blue_jetraidalert
(sleep_until (= (vehicle_test_seat_list bmj1 "J-pilot" (ai_actors blue_spartanpilot1)) true))
(sound_looping_start "sound\alarm\nuke_warning" bb 0.5)
(sleep_until (= (vehicle_test_seat_list bmj1 "J-pilot" (ai_actors blue_spartanpilot1)) false))
(sound_looping_stop "sound\alarm\nuke_warning")
)


(script continuous red_jetraidalert
(sleep_until (= (vehicle_test_seat_list rmj1 "J-pilot" (ai_actors red_spartanpilot1)) true))
(sound_looping_start "sound\alarm\raid siren" br 0.5)
(sleep_until (= (vehicle_test_seat_list rmj1 "J-pilot" (ai_actors red_spartanpilot1)) false))
(sound_looping_stop "sound\alarm\raid siren")
)

Which now works perfectly...Thanks!
Edited by Mysterion on Dec 12, 2010 at 07:15 PM

 

 
Previous Older Thread    Next newer Thread







Time: Sat January 21, 2023 12:14 AM 141 ms.
A Halo Maps Website