Skip to content
EvilEngine.Api.Weapons

ProjectileTrail record struct

public readonly record struct ProjectileTrail

A trail drawn behind a projectile as it flies, from red, green and blue from 0 to 1, its width in meters and how many seconds it lasts.

Assembly
EvilEngine.Api
Commit
4ff877b1

Members

ProjectileTrail constructor

public ProjectileTrail(double Red, double Green, double Blue, double Width, double Life)

Its colour, width and life.

Red property

public double Red { get; init; }

How red, from 0 to 1.

Green property

public double Green { get; init; }

How green, from 0 to 1.

Blue property

public double Blue { get; init; }

How blue, from 0 to 1.

Width property

public double Width { get; init; }

How wide it starts, in meters.

Life property

public double Life { get; init; }

How many seconds each piece of it lasts before it fades.

Smoke property

public bool Smoke { get; init; }

Whether it’s soft smoke that widens as it fades instead of a glowing streak.