FunStuff/EndingAchievement.cs

Trigger volume component that unlocks a named achievement when the player enters it. The achievement is only unlocked when the entering object is not a network proxy, so the call runs locally on the owning client.

Rough CodeNetworking
using Sandbox.Services;

namespace Sandbox;

public sealed class AchievementTrigger : Component, Component.ITriggerListener
{
	[Property] public string Achievement { get; set; } = "";

	void ITriggerListener.OnTriggerEnter( Collider other )
	{

		if ( other.GameObject.Tags.Has( "player" ) )
		{
			if ( !other.Network.IsProxy )
			{
				Achievements.Unlock( Achievement );
			}
		}
	}
}