trigger for music

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
hogleg
General
Posts: 1577
Joined: Tue Sep 09, 2003 5:23 pm
Location: Down South Hillbilly Country

trigger for music

Post 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??

:?:
"all the governments in the world are corrupt and in the hands of the Illuminati"
Habsey
Lance Corporal
Posts: 14
Joined: Wed Mar 22, 2006 7:05 am
Location: Canada.
Contact:

Re: trigger for music

Post 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
User avatar
hogleg
General
Posts: 1577
Joined: Tue Sep 09, 2003 5:23 pm
Location: Down South Hillbilly Country

Post 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
"all the governments in the world are corrupt and in the hands of the Illuminati"
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

setthread your_thread
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
User avatar
hogleg
General
Posts: 1577
Joined: Tue Sep 09, 2003 5:23 pm
Location: Down South Hillbilly Country

Post 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 :evil:
"all the governments in the world are corrupt and in the hands of the Illuminati"
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Post 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
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post 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'? :roll:
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Post 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
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

lines

Post 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".
Tom Trude,

Image
Post Reply