A simple example component for the SbTween library that starts a perpetual location shake tween when the component starts. It calls TweenShakeLocation with duration and magnitude and sets infinite yo-yo loops.
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 );
}
}