Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sound problem
Lizard Offline
Member

Posts: 174
Threads: 23
Joined: Jul 2012
Reputation: 5
#1
Sound problem

I just started a new map. where there is a leak that i got to work perfectly with ps and everything, the only thing that wont work is the sound, and i have no idea why

//First time entering map
///////////////////////////
void OnStart()
{

}

//When entering map
////////////////////////
void OnEnter()
{
PlaySoundAtEntity("WaterFlow", "12_epoxy_flow.snt", "WaterStreamArea", 0.1f, true);
}

//When Leaving map
///////////////////////
void OnLeave()
{

}

And yes, the entity to play the sound at is spelled correctly.

CURRENT PROJECT:
A Fathers Secret == Just started
(This post was last modified: 07-23-2013, 02:25 PM by Lizard.)
07-23-2013, 01:25 PM
Find
GoranGaming Offline
Member

Posts: 183
Threads: 30
Joined: Feb 2012
Reputation: 7
#2
RE: Sound problem

Is the map the second map? Otherwise you have to put it in void OnStart()...

Current projects:

The Dark Prison 85 % (Stopped working on this one)

Unnamed Project 7 %
(This post was last modified: 07-23-2013, 01:29 PM by GoranGaming.)
07-23-2013, 01:29 PM
Website Find
Lizard Offline
Member

Posts: 174
Threads: 23
Joined: Jul 2012
Reputation: 5
#3
RE: Sound problem

(07-23-2013, 01:29 PM)GoranGaming Wrote: Is the map the second map? Otherwise you have to put it in void OnStart()...

No it is my first map

CURRENT PROJECT:
A Fathers Secret == Just started
07-23-2013, 01:30 PM
Find
No Author Offline
Posting Freak

Posts: 962
Threads: 10
Joined: Jun 2012
Reputation: 13
#4
RE: Sound problem

I don't know what went wrong with the script. But I'd rather put the "playsoundatentity" script in void OnStart() since it's the first map.

[Image: the-cabin-in-the-woods-masked-people.jpg]
07-23-2013, 01:49 PM
Find
Lizard Offline
Member

Posts: 174
Threads: 23
Joined: Jul 2012
Reputation: 5
#5
RE: Sound problem

Dosen't work in OnStart eiter

CURRENT PROJECT:
A Fathers Secret == Just started
07-23-2013, 01:52 PM
Find
No Author Offline
Posting Freak

Posts: 962
Threads: 10
Joined: Jun 2012
Reputation: 13
#6
RE: Sound problem

Try changing the
PHP Code: (Select All)
PlaySoundAtEntity("WaterFlow""12_epoxy_flow.snt""WaterStreamArea"0.1ftrue); 

to
PHP Code: (Select All)
PlaySoundAtEntity("WaterFlow""12_epoxy_flow.ogg""WaterStreamArea"0.1ftrue); 

[Image: the-cabin-in-the-woods-masked-people.jpg]
07-23-2013, 01:55 PM
Find
Lizard Offline
Member

Posts: 174
Threads: 23
Joined: Jul 2012
Reputation: 5
#7
RE: Sound problem

(07-23-2013, 01:55 PM)No Author Wrote: Try changing the
PHP Code: (Select All)
PlaySoundAtEntity("WaterFlow""12_epoxy_flow.snt""WaterStreamArea"0.1ftrue); 

to
PHP Code: (Select All)
PlaySoundAtEntity("WaterFlow""12_epoxy_flow.ogg""WaterStreamArea"0.1ftrue); 

already tryed that. It dosen't work eiter

CURRENT PROJECT:
A Fathers Secret == Just started
07-23-2013, 01:56 PM
Find
No Author Offline
Posting Freak

Posts: 962
Threads: 10
Joined: Jun 2012
Reputation: 13
#8
RE: Sound problem

PHP Code: (Select All)
PlaySoundAtEntity("WaterFlow""12_epoxy_flow.snt""WaterStreamArea"0false); 

[Image: the-cabin-in-the-woods-masked-people.jpg]
07-23-2013, 02:00 PM
Find
Lizard Offline
Member

Posts: 174
Threads: 23
Joined: Jul 2012
Reputation: 5
#9
RE: Sound problem

(07-23-2013, 02:00 PM)No Author Wrote:
PHP Code: (Select All)
PlaySoundAtEntity("WaterFlow""12_epoxy_flow.snt""WaterStreamArea"0false); 

Thats already tryed that as well.

Almost tryed every thing with the callback/command it self

CURRENT PROJECT:
A Fathers Secret == Just started
(This post was last modified: 07-23-2013, 02:03 PM by Lizard.)
07-23-2013, 02:03 PM
Find
GoranGaming Offline
Member

Posts: 183
Threads: 30
Joined: Feb 2012
Reputation: 7
#10
RE: Sound problem

I used this line in one of my custom stories, it worked:

PlaySoundAtEntity("Water1", "12_epoxy_flow", "ParticleArea1", 0, true);

So try to remove the .snt extension

Current projects:

The Dark Prison 85 % (Stopped working on this one)

Unnamed Project 7 %
(This post was last modified: 07-23-2013, 02:07 PM by GoranGaming.)
07-23-2013, 02:07 PM
Website Find




Users browsing this thread: 4 Guest(s)