spawnFakeBeam

open fun spawnFakeBeam(engine: CombatEngineAPI, from: Vector2f, range: Float, angle: Float, width: 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

width

Width of the beam

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