Sound that follows an object

Posted By: Impaler

Sound that follows an object - 01/21/07 11:07

I think the answer to this is so simple I don't want to post it on scripting :
I want sounds to stay with a moving object instead of getting left behind when ent_playsound is called. how?
Posted By: HeelX

Re: Sound that follows an object - 01/21/07 11:34

of getting left behind when ent_playsound is called.

What? A 3D sound is always panned and faded as the object is related to the listener (camera) in 3D space.
Posted By: Impaler

Re: Sound that follows an object - 01/22/07 11:30

I mean for example an engine sound is supposed to stay with the car object rather than it being left behind the car when the car moves on. I want the sound to be constantly emitted from where the car is.
Posted By: HeelX

Re: Sound that follows an object - 01/22/07 11:50

If I assign an sound with ent_playSound to an entity while it moves, the 3d sound moves with the object.

Compile a testdemo whereas you demonstrate this bug!
Posted By: Taratoga1

Re: Sound that follows an object - 06/25/07 11:56

Hi,

even the thread is a bit older. I found the same problem:

If an entity is emitting the sound and is moving, the sound stays at the place, where it was started. (The sound is left behind.)

Example: The player is speaking, while going. The camera is flying backwards by watching the speaking player. The sound is faded out, even the distance between player and camera dont change.

This is happen with ent_playsound. My question is if it is needed to update the location of the entity? But as I understand the situation, this is not necessary.

Kind regards

Taratoga
© 2024 lite-C Forums