FunStuff/SoundEmitter.cs

Small component that plays a sound once at its world position when it starts. The sound is set via a string property on the component.

Rough Code
using Sandbox;

public sealed class SoundEmitter : Component
{
	[Property] public string SoundString { get; set; }

	protected override void OnStart()
	{
		base.OnStart();

		Sound.Play( SoundString, Transform.Position );
	}
	protected override void OnUpdate()
	{

	}
}