Entity:GetSoundEmissionOrigin(Entity)
server
Argument
- entity Entity
Returns
- Vector The sound emission origin
Examples
Entity:GetSoundEmissionOrigin – From a source SDK comment 'Used by the PAS filters to ask the entity where in world space the sounds it emits come from. This is used right now because if you have something sitting on an incline, using our axis-aligned bounding boxes can return a position in solid space, so you won't hear sounds emitted by the object. For now, we're hacking around it by moving the sound emission origin up on certain objects like vehicles..'