Music

  • If you're asking a question make sure to set the thread type to be a question!

t00bz

L1: Registered
Jul 8, 2010
3
0
Okay
so, i'm making this map. except i wanna install music buttons in it. how do i import the music and how do i make the buttons play the music.
and by the way, anybody know a good prop to have play music? cause i don't know any.

there's also another thing, how do i make a button explode the person who clicked it.
and yes, i want it to continue working afterwards, it's only use is to explode actually
 

grazr

Old Man Mutant Ninja Turtle
aa
Mar 4, 2008
5,441
3,814
This is pretty basic stuff... In fact this is the first kinda stuff i learnt myself by reading tutorials over at the snarkpit.

You can't have buttons in TF2 because there is no "use" function, but you can trigger them with proximity triggers (trigger_multiple).

Simply set your trigger_multiple to activate an imbient_generic on touch (OnStartTouch) which plays your selected sound file. Plus an explosion (env_explosion) that fires once...

uuurgh, i'd go into more detail but there isn't much need, this isn't the kinda stuff you get explained to you in one on one. Just research basic trigger_multiple functionality and ambient_generic's. You'll find them in Single Player tutorials for Source mod's and is all you need to do is replace the use function with a proximity (Or damage E.G. tr_walkway) activation.

edit: for good all round tutorials see: http://www.snarkpit.net/snarkpower/articles
Also see: http://www.interlopers.net/tutorials/
 
Last edited:

t00bz

L1: Registered
Jul 8, 2010
3
0
um
you can have buttons......
you bind a use key to something like "f"
and then you can press buttons
right?
._.
OH I DON'T KNOW
 

Mr.Late

L7: Fancy Member
Nov 27, 2009
408
157
The server needs to enable the use button.

You could make the buttons be activated by damage. Check the flags tab.
 

t00bz

L1: Registered
Jul 8, 2010
3
0
well
as far as i'm concerned, i'm making this for my group
and my group has the use button enabled
i'll check just in case though