Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Broadcase Noise (Help pleeeeese)

Author
Message
Mr BIGMIND dev
17
Years of Service
User Offline
Joined: 4th Feb 2007
Location:
Posted: 26th Oct 2007 03:22
Hey guys... I wonder if you can help?

Ive extracted this from the FPI script command reference, its explaining the noiseheard command.

<=========================FPI COMMAND============================>
[edit] NOISEHEARD
-usage: NOISEHEARD=X
Returns true when the entity hears a broadcase noise from scene
<================================================================>

A) what is a broadcast noise? Is any SFX sound a broadcast noise??
B) How do we set the entity in question??

Hope someone can shed a little light on the matter, thanks guys...

R

Let your creative juices drip freely from the Slate of your mind!! R
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 26th Oct 2007 19:56 Edited at: 26th Oct 2007 19:59
Answers:

A) A broadcast noise is a sound being played using the "sound=" action in a script. That will play a "3d sound" and entities that are looking for "NoiseHeard" will notice it, if it's close enough to them. Sounds that do NOT count as "broadcast sounds" are called with the "plrsound=" action, to play a sound for the player and just the player.

B) "Set"? As in set up the entity? Well, you make a entity in your level, then in their properties, give them a Main AI script that uses the command you were looking for. Most Character AI scripts use that to check for sound.


Btw, the "NoiseHeard=X" condition... actually does not USE the X in it's code, and so you could put ANY value into it and it would act the same.


The one and only,
~PlystirE~

Dammit, Jim! I'm a programmer not a graphic designer!!!

(P)suedo code (L)inguist, (Y)ou (Sti)ll (R)eap (E)verything
Mr BIGMIND dev
17
Years of Service
User Offline
Joined: 4th Feb 2007
Location:
Posted: 29th Oct 2007 20:56
thanks buddy,

Your a diamond

Let your creative juices drip freely from the Slate of your mind!! R

Login to post a reply

Server time is: 2024-11-23 23:42:59
Your offset time is: 2024-11-23 23:42:59