Garry's Mod

Garry's Mod

View Stats:
e2 sound player help
can anyone help me make a sound player e2 that can play a list of sounds in a random order? I don't really know much about coding, but I have an e2 that plays a single sound at a higher pitch. I could use that as a base or something if need be:

@name haveamedkit!
@persist

interval(0)

if(owner():keyAttack2() && changed(owner():keyAttack2())){
owner():soundPlay(1,0,"*vo/npc/male01/health03.wav")
soundPitch(1,145)
}

this plays the sound file for the male npc saying ''have a medkit.'' I want one that could play more than this, though since switching between sound files through deleting and redeploying the e2 and editing the code is just tedious. any help?
< >
Showing 1-1 of 1 comments
fluffy Feb 13 @ 4:29pm 
@name havemedkit!
@persist

interval(1000)

if(owner():keyAttack2() && owner():keyAttack2()){
owner():soundPlay(1,0,"vo/npc/male01/health03.wav")
soundPitch(1,145)
}

#your gona have to hold it for a little MIGHT NOT WORK SOEM TIMES just replace it
< >
Showing 1-1 of 1 comments
Per page: 1530 50

Date Posted: Apr 26, 2020 @ 9:19pm
Posts: 1