SbTween/Examples/SbeTSS.cs

A small example component that runs on entity start and applies a repeating shake-scale tween to the entity. It starts a TweenShakeScale with duration 0.6 and magnitude 0.3, then sets it to loop forever with YoYo behavior.

using Sandbox;
using SbTween;

namespace SbTween.Examples;

public sealed class SbeTSS : Component
{
	protected override void OnStart()
	{
		this.TweenShakeScale( 0.6f, 0.3f ).SetLoops( -1, LoopType.YoYo );
	}
}