LevelSnowEffect.cs

A small Sandbox Component that follows the local player horizontally to position a snow effect. On each update it gets the local player from Manager.Instance and sets this entity's WorldPosition X/Y to the player's, preserving its own Z.

using Sandbox;

public sealed class LevelSnowEffect : Component
{
	protected override void OnUpdate()
	{
		var player = Manager.Instance.LocalPlayer;

		if( !player.IsValid() )
			return;

		WorldPosition = player.WorldPosition.WithZ( WorldPosition.z );
	}
}