Dear forum users! In compliance with the new European GDPR regulations, we'd just like to inform you that if you have an account, your email address is stored in our database. We do not share your information with third parties, and your email address and password are encrypted for security reasons.

New to the forum? Say hello in this topic! Also make sure to read the rules.

Why does PlaySound have a worldPosition argument?

Share questions, scripts and tutorials related to the ScriptAPI in SFD.
Forum rules
By using the forum you agree to the following rules.
Post Reply
User avatar
Ol1vver
Superfighter
Superfighter
Posts: 69
Joined: Mon Nov 19, 2018 4:55 pm
SFD Account: olv
SFD Alias: olv
Started SFD: PreAlpha 1.6.4
Gender:

Why does PlaySound have a worldPosition argument?

Post by Ol1vver » Fri Jan 22, 2021 3:02 pm

It doesn't affect anything from what I can see as a normal player.
0 x

User avatar
KliPeH
Moderator
Moderator
Posts: 919
Joined: Sat Mar 19, 2016 3:03 pm
Title: [happy moth noises]
SFD Account: KliPeH
Started SFD: Pre-Alpha 1.4.2
Gender:
Contact:

Post by KliPeH » Fri Jan 22, 2021 3:30 pm

I'm not very familiar with the Map Editor functions but I imagine you can use PlaySound as a source of ambient noise in specific areas like the boiler room in Hotel or Steamship which produces a buzzing sound as you get into it. Probably the same with wave sounds as you walk onto the deck etc.
0 x
 
Image

User avatar
Ol1vver
Superfighter
Superfighter
Posts: 69
Joined: Mon Nov 19, 2018 4:55 pm
SFD Account: olv
SFD Alias: olv
Started SFD: PreAlpha 1.6.4
Gender:

Post by Ol1vver » Fri Jan 22, 2021 4:06 pm

KliPeH wrote:
Fri Jan 22, 2021 3:30 pm
I'm not very familiar with the Map Editor functions but I imagine you can use PlaySound as a source of ambient noise in specific areas like the boiler room in Hotel or Steamship which produces a buzzing sound as you get into it. Probably the same with wave sounds as you walk onto the deck etc.
Those are made with the SoundAreas. The sounds activate as soon as you walk into the area.
1 x

User avatar
Gurt
Lead Programmer
Lead Programmer
Posts: 1885
Joined: Sun Feb 28, 2016 3:22 pm
Title: Lead programmer
Started SFD: Made it!
Location: Sweden
Gender:
Age: 34

Post by Gurt » Fri Jan 22, 2021 5:09 pm

In case we ever wanted to implement pan for sounds from outside the camera. We never did so that's just a left over. It doesn't really do anything.
1 x
Gurt

Post Reply