Page 1 of 1
trigger for music
Posted: Sat Mar 25, 2006 4:44 am
by hogleg
I've got this at the start of my SP map, ( $player stufftext "tmstart sound/music/mus_04f_suspense.mp3" ).
Question: How do I trigger at another spot in the map?
I know i would use a trigger multiple where i wanted to activate it but do i just need the trigger to call for that $player stufftext.....somehow??

Re: trigger for music
Posted: Sat Mar 25, 2006 7:30 am
by Habsey
hogleg wrote:I've got this at the start of my SP map, ( $player stufftext "tmstart sound/music/mus_04f_suspense.mp3" ).
Question: How do I trigger at another spot in the map?
I know i would use a trigger multiple where i wanted to activate it but do i just need the trigger to call for that $player stufftext.....somehow??

just call a thread from the trigger multiple :
Code: Select all
thead_called:
local.p = parm.other
local.p stufftext "w/e"
end
Posted: Sat Mar 25, 2006 5:47 pm
by hogleg
thx...
But what are the key / value to call that thread? You need to spell it out a little more clearly, im a noob at scripting.
okay, like this:
Code: Select all
thread music 1
music1:
$player stufftext "tmstart sound/music/mus_10a_action.mp3"
end
that for the script but wat about the key values for the trigger multiple?
********
this is what i have so far, is this right?
trigger_multiple
#set / 4 (ive allready used 1~3)
targetname / music 1
Posted: Sat Mar 25, 2006 8:43 pm
by Rookie One.pl
setthread your_thread
Posted: Sat Mar 25, 2006 8:53 pm
by hogleg
Soooo...just target music 1
Code: Select all
thread music 1
music1:
$player stufftext "tmstart sound/music/mus_02f_suspence.mp3"

ahhh
setthread
music 1
***edit***
nope, didnt work

Posted: Sat Mar 25, 2006 10:13 pm
by Master-Of-Fungus-Foo-D
erm, remove the 'thread music 1' line...
(btw, that line is faulty, it sud be 'thread music1')
if you have it calling the thread in the script, itll start the music when you spawn
just put this as a key/value in radiant:
setthread
music1
then have this in your script:
Code: Select all
music1:
$player stufftext "tmstart sound/music/mus_02f_suspence.mp3"
end
Posted: Sat Mar 25, 2006 10:29 pm
by Rookie One.pl
Code: Select all
music1:
$player stufftext "tmstart sound/music/mus_02f_suspence.mp3"
end
No wonder it didn't work. Can't you guys spell 'suspense'?

Posted: Sat Mar 25, 2006 10:53 pm
by Master-Of-Fungus-Foo-D
not as much as some of us can spell attach
well what i pointed out was wrong as well, so fix that too, hog
lines
Posted: Sun Mar 26, 2006 12:11 am
by tltrude
The best way to learn how SP scripts change the music is to study the singleplayer scripts. Search them for "stufftext".
There should already be AI threads that are being triggered at points in your map. So just add the stufftext lines to those threads.
Btw, if you use "tmstart" it may only play the sound one time. You can also use "tmstartloop".