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 General Discussion »script device_control with sound_looping

Author Topic: script device_control with sound_looping (10 messages, Page 1 of 1)
Moderators: Dennis

askiwill
Joined: Sep 24, 2013


Posted: Sep 24, 2013 04:10 AM    Msg. 1 of 10       
Hello everyone ! I need help please ! I have a problem with the script of my map ! I would like to turn on and off a sound_looping with a device_control ! But my script does not work !

(Script continuous musicbox
(Sleep_until
(=
(device_group_get_position) 1) 1)
(sound_looping_start levels\test_map\scenery\musicbox\musicbox none 1)
(Sleep_until
(=
(device_group_get_position) 0) 1)
(sound_looping_stop levels\test_map\scenery\musicbox\musicbox none 1)
)

This is my first script... :/

Thank you in advance for your help.

PS : Sorry for my english, i am Spanish :)


altis94
Joined: Oct 5, 2012

Join my Discord https://discord.gg/GDVEaRD


Posted: Sep 24, 2013 04:43 AM    Msg. 2 of 10       
I'm pretty sure you could do that without script.


askiwill
Joined: Sep 24, 2013


Posted: Sep 24, 2013 06:46 AM    Msg. 3 of 10       
Really ? But how ?


killzone64
Joined: Jun 9, 2010

Mostly active on discord


Posted: Sep 24, 2013 08:39 AM    Msg. 4 of 10       
i believe you can make a function in a device machine tag that allows you to play a sound that is in the attachments section of the tag. if you set up the function properly it will only play when the device is activated


askiwill
Joined: Sep 24, 2013


Posted: Sep 24, 2013 10:28 AM    Msg. 5 of 10       
Ok, thanks ! :D


askiwill
Joined: Sep 24, 2013


Posted: Sep 25, 2013 12:47 AM    Msg. 6 of 10       
Useless comment...


MoooseGuy
Joined: Aug 10, 2008

I Approve This Message.


Posted: Sep 25, 2013 01:08 AM    Msg. 7 of 10       
Quote: --- Original message by: rangerDanger

Quote: --- Original message by: askiwill

Thank you in advance for your help.

PS : Sorry for my english, i am Spanish :)


Why does everyone use this as an excuse? oh SarreY I am A mexiCUM and I can nOE spek Enrgishes WElz OKAY bay!


It's the same as if you tried to type out comprehensible sentences on a Finnish forum. Try to remember that English is not the only language that people speak in this world. Thinking that everyone needs to be perfect at your own language is na´ve.


askiwill
Joined: Sep 24, 2013


Posted: Sep 25, 2013 11:29 AM    Msg. 8 of 10       
Thank you for your support, MoooseGuy! :)
Killzone64 thank you so much, I found a solution to my problem
See you soon


grunt_eater
Joined: Jan 26, 2011

Everything except biped rigging.


Posted: Sep 25, 2013 01:32 PM    Msg. 9 of 10       
Quote: --- Original message by: rangerDanger
Google Transalate? Wow everyone is ganging up on me I feel so helpless!


Google translate is known for being a terrible translation device. Simply put, all languages are not the same, because of this, it's hard to match each word up to another from a different language and still have things make sense.

English isn't the only language in the world, and i would love to see you type out a comprehensible sentience in Spanish, or any other language for that matter. Point is, he knows more English than you do his language.


UnevenElefant5
Joined: May 3, 2008

she/her this fag bashes back


Posted: Sep 25, 2013 03:17 PM    Msg. 10 of 10       
Try this:


(script continuous musicbox
(sleep_until (= (device_get_position DEVICENAME) 1)
(sound_looping_start "levels\test_map\scenery\musicbox\musicbox" none 1)
(sleep_until (= (device_get_position DEVICENAME) 0)
(sound_looping_stop "levels\test_map\scenery\musicbox\musicbox")
)


Are you using a device or a device group? I assume it's a device so I've modified the script accordingly

Insert the name of your device in place of "DEVICENAME"
I'm in class and I don't remember the exact order of arguments for all this stuff, so it could be wrong.
Edited by UnevenElefant5 on Sep 25, 2013 at 03:20 PM
Edited by UnevenElefant5 on Sep 25, 2013 at 03:40 PM

 

 
Previous Older Thread    Next newer Thread







Time: Mon January 27, 2020 11:29 PM 187 ms.
A Halo Maps Website