Home   Help Search Login Register  

Author Topic: Screaming in the woods...  (Read 3116 times)

0 Members and 1 Guest are viewing this topic.

cragtek

  • Guest
Re:Screaming in the woods...
« Reply #15 on: 23 Jan 2006, 00:57:35 »
Oh yes, and ? instead of 'if'!

cragtek

  • Guest
Re:Screaming in the woods...
« Reply #16 on: 23 Jan 2006, 01:20:46 »
No errors, but still not hearing any screams! Please could you tell me what exactly I should create in the editor?

I have defined the sounds in description.ext too.
« Last Edit: 23 Jan 2006, 03:13:17 by cragtek »

Offline Tyger

  • Former Staff
  • ****
  • I was at OFPEC when it still had dirt floors...
    • OFPEC
Re:Screaming in the woods...
« Reply #17 on: 23 Jan 2006, 04:46:33 »
Im not sure. I was just looking for syntax errors. I don't really know what would be causing any problems. Do you have the sounds defined in the description.ext properly, etc etc? As in proper folders? Just double checking... :P
« Last Edit: 23 Jan 2006, 04:50:30 by Tyger »
"People sleep soundly at night only because rough men stand ready to do violence on their behalf." - George Orwell

MSG Mike Everret - We Will Never Forget - '75-'08

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Screaming in the woods...
« Reply #18 on: 23 Jan 2006, 08:45:23 »
I would stick with using if and not ?  It is so much more powerful and flexible.

I suggest you write a script to get one sound working in one place and then use this script to randomise the whole thing.

Tyger:  Thanks it looks like  I was a bit lazy with the brackets

« Last Edit: 23 Jan 2006, 08:46:05 by THobson »

cragtek

  • Guest
Re:Screaming in the woods...
« Reply #19 on: 23 Jan 2006, 14:46:15 »
Yep, sounds are defined. Should I be creating two markers called marker1 and marker2, or should I be creating gamelogics?

For some reason if I use 'if' I get the operator error. With '?' the errors disappear, but then the script doesn't do anything.

Sorry about this, guys, must be a right pain!

-Craig

PS. Incidentally, I've tried commenting out lines and still no joy. Could it be a problem with the 'say' command?

Here is my description.ext (or the relevant parts at least):

Code: [Select]
class CfgSounds
{
sounds[] =
{
UScore, ScreamM, ScreamF, UCapture
};

class UScore
{
name = "UScore";
sound[] = {"UScore.ogg", 1, 1.0};
titles[] = { };
};

class ScreamM
{
name = "ScreamM";
sound[] = {"ScreamM.ogg", 1, 1.0};
titles[] = { };
};

class ScreamF
{
name = "ScreamF";
sound[] = {"ScreamF.ogg", 1, 1.0};
titles[] = { };
};

class UCapture
{
name = "UCapture";
sound[] = {"UCapture.ogg", 10, 1.0};
titles[] = { };
};
};

« Last Edit: 23 Jan 2006, 15:37:18 by cragtek »

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Screaming in the woods...
« Reply #20 on: 23 Jan 2006, 17:46:39 »
Just a quick look:

I specify the folder in my sound definitions:

sound[] = {"\sound\UScore.ogg", 1, 1.0};

Is the volume of the sounds loud enough?

On the if line.  Those lines are a piece of belt and braces protection against a very rare event.  Generally they can be left out of the script.  But they should work.  I have never had the problems you describe.  Will you please copy and paste your script here so we can see it exactly - with the offending ifs