sounds in script

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
Firefox
Colour Sergeant
Posts: 90
Joined: Sun May 07, 2006 3:23 pm
Location: USA
Contact:

sounds in script

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

You made it? *cough*

Code: Select all

   parm.owner commanddelay 40 playsound smokegrenade_snd_grenade_pull
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
User avatar
Firefox
Colour Sergeant
Posts: 90
Joined: Sun May 07, 2006 3:23 pm
Location: USA
Contact:

Post by Firefox »

sry... I meant I USED it... lol
and thanks for all your help Rookie... One.pl
Image
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 »

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?
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
User avatar
Firefox
Colour Sergeant
Posts: 90
Joined: Sun May 07, 2006 3:23 pm
Location: USA
Contact:

Post by Firefox »

no it didnt smoke out till later... dont no why :o
Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

parm.owner commanddelay 40 iprint "Your smoke grenade has depleted!" 1 // :)
Image
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 »

That 1 will only make it print in white. :P
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

But it'll also make a sound 8-)

*click*
Image
Post Reply