Code/SbTween/Examples/SbeTLS.cs

A small game component that starts a looping location shake tween when the component starts. It calls TweenShakeLocation with duration and magnitude, then sets infinite YoYo 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 );
	}
}