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 / Object animated without collision play sound when player is walking in it? help

Author
Message
SamHH
17
Years of Service
User Offline
Joined: 9th Dec 2006
Location: Vermont
Posted: 21st Jan 2008 00:47
I'm trying to make an object that you can walk through, that plays sound when you do.

animation works fine obviously, collision is not off, and I guess the state 3 would be something like player within play sound.
Could someone help me put with this script?
thanks


David C
16
Years of Service
User Offline
Joined: 7th Jan 2008
Location:
Posted: 21st Jan 2008 02:14
well... why not just at your object post a media box at the right at the object would that work??? it may

Aftermath Games
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 21st Jan 2008 06:55
Why do so many people put three colons on a line? That's one of THE most common bugs in scripts on this board.

I commend you for wanting to learn how to script, tho. Don't get me wrong.

Just, remember that there are ONLY two ":"s per line. The first one tells the engine that the commands following it are going to be Conditions... then the second colon tells the engine that the commands following THAT are going to be Actions.

It's all in my tutorials which can now be found in the Tips and Tricks guide compiled by Nickydude. I suggest looking them up.


As for your request, try this out:


^
|_,- Give That script to your entity. Then place a soundzone on top of it and give the soundzone your desired sound.

Viola!~


The one and only,
~PlystirE~

Urlforce:
Dude, I'd rather be declared a dbpro noob than an fpsc legend any day!
SamHH
17
Years of Service
User Offline
Joined: 9th Dec 2006
Location: Vermont
Posted: 21st Jan 2008 18:54
Thanks Plystire, just wondering, is it possible to have a sound play when the player moves inside of the entity?
Thanks


Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 22nd Jan 2008 12:29
I don't believe so.

The "PLRWITHINZONE" will only work with zone entities.

But maybe one of the other bright scripters around here can think of a better workaround than what I've provided above.


The one and only,
~PlystirE~

Urlforce:
Dude, I'd rather be declared a dbpro noob than an fpsc legend any day!
Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 22nd Jan 2008 18:38
Won't you be able to use "PLRDISTWITHIN=X is true when player is within X units"?

Was going to take a break... But I missed FPSC!
SamHH
17
Years of Service
User Offline
Joined: 9th Dec 2006
Location: Vermont
Posted: 22nd Jan 2008 20:28
Quote: "Won't you be able to use "PLRDISTWITHIN=X is true when player is within X units"?
"
I've been messing around with that one but I cant seem to get it right


Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 23rd Jan 2008 04:40
Well, if you remember that one segment is 100 units by 100 units, then you can sorta estimate how big the object is...

However, this creates a circle area around the object, and so wouldn't be good for oblong objects. Whereas the zone creates a box around the object whose dimensions are always divisible by 100! Both are not very precise, but maybe with a combination of the two, you could get something even more precise!


The one and only,
~PlystirE~

Urlforce:
Dude, I'd rather be declared a dbpro noob than an fpsc legend any day!
CoffeeGrunt
17
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 24th Jan 2008 21:31
will PLRDISTWITHIN work, since his collision is off?

Login to post a reply

Server time is: 2024-11-24 03:45:24
Your offset time is: 2024-11-24 03:45:24