Calling Juicy Actions from Projectile Spawner

v1.0

The ProjectileSpawner has many events built-in. These can be used to Execute() actions on ActionExecutors, or on components like the ActionRunner.

The Demo Player Actor in the scene is a variant, and has the ProjectileDemoActorJuicy on it β€” this inherits from the original ProjectileDemoActor. This adds ActionExecutors and properties to Execute() them.

// ProjectileDemoActorJuicy.cs
public void ExecuteLaunchActions() => onLaunchActions.Execute(this);
public ActionExecutor onLaunchActions;

We can then call the Execute() method using the OnLaunch event in the Projectile Events on the ProjectileSpawner.

With that, we can add a bunch of juice, including transform and material effects plus post processing effects.

Last updated