spawnAdvancedFakeBeam

open fun spawnAdvancedFakeBeam(engine: CombatEngineAPI, from: Vector2f, range: Float, angle: Float, widthIn: Float, widthOut: Float, growth: Float, textureCore: String, textureFringe: String, textureLength: Float, textureScroll: Float, smoothIn: Float, smoothOut: Float, full: Float, fading: Float, impactSize: Float, core: Color, fringe: Color, normalDamage: Float, type: DamageType, emp: Float, source: ShipAPI)

Fake beam generator. Create a visually convincing beam from arbitrary coordinates. It however has several limitation: - It deal damage instantly and is therefore only meant to be used for burst beams. - It cannot be "cut" by another object passing between the two ends, thus a very short duration is preferable. - Unlike vanilla, it deals full damage to armor, be careful when using HIGH_EXPLOSIVE damage type. It's usage is recommended for short snappy beams or for FXs

Parameters

engine

Combat engine

from

Point of origin of the beam

range

Maximum range of the beam

angle

Angle of the beam

widthIn

Width at the source

widthOut

Width at the tip

growth

Width change over time, can be negative

textureCore

Texture for the core, has to be vertical and loaded in the "fx" category of the settings. Same thing as Magic Trails textures.

textureFringe

Texture of the fringe of the beam

textureLength

Visual length on the texture loop

textureScroll

Scrolling speed of the texture en pixels/s

smoothIn

fade length at the base of the beam

smoothOut

fade length at the tip

full

Duration of the beam at full opacity

fading

Duration of the beam fading

impactSize

Size of the impact glow

core

Core color of the beam

fringe

Fringe color of the beam

normalDamage

Base damage of the beam

type

Damage type

emp

Emp damage

source

Damage source to calculate skill and ship damage bonuses