Page 1 of 1

sounds in script

Posted: Fri Jun 30, 2006 8:23 pm
by Firefox
I made a script where when your smoke grenade depletes it tells you I want to add a sound so that when the messege comes up It makes a sound such as sound/typekey.wav
heres what I have so far...

Code: Select all

main:
enter sound smokegrenade_snd_grenade_pull
   parm.owner commanddelay 40 iprint "Your smoke grenade has depleted!" // smoke nades last for 33 seconds
end
the "enter sound smokegrenade_snd_grenade_pull" was an attempt at putting in a sound... but I dont think thats right :?
so anyway can anyone help?

Posted: Fri Jun 30, 2006 8:47 pm
by Rookie One.pl
You made it? *cough*

Code: Select all

   parm.owner commanddelay 40 playsound smokegrenade_snd_grenade_pull

Posted: Fri Jun 30, 2006 8:51 pm
by Firefox
sry... I meant I USED it... lol
and thanks for all your help Rookie... One.pl

Posted: Fri Jun 30, 2006 9:29 pm
by Rookie One.pl
Lol. No problem. :P

Remember that the parameter that goes after playsound is not the name of a wav file but of an ubersound/uberdialog alias.

And what made you change the delay to 40 seconds? You extended the nade's life time?

Posted: Fri Jun 30, 2006 10:02 pm
by Firefox
no it didnt smoke out till later... dont no why :o

Posted: Sat Jul 01, 2006 7:52 am
by jv_map
parm.owner commanddelay 40 iprint "Your smoke grenade has depleted!" 1 // :)

Posted: Sat Jul 01, 2006 9:21 am
by Rookie One.pl
That 1 will only make it print in white. :P

Posted: Sat Jul 01, 2006 5:37 pm
by jv_map
But it'll also make a sound 8-)

*click*