A small example component for the SbTween library. On start it applies a looping shake-location tween to the attached entity, with 0.6s duration and magnitude 10, looping forever in a YoYo pattern.
using Sandbox;
using SbTween;
namespace SbTween.Examples;
public sealed class SbeTLS : Component
{
protected override void OnStart()
{
this.TweenShakeLocation( 0.6f, 10 ).SetLoops( -1, LoopType.YoYo );
}
}