ShockWaves

Overview

Return Value
Function

CreateShockwave(Entity source, Vector position, CustomShockwaveParams customShockwaveParams)

CreateShockwaveLine(Entity source, Vector center, Vector direction, CustomShockwaveParams customShockwaveParams, number? spacing, integer? delay, integer? numShockwaves)

CreateShockwaveRandomLine(Entity source, Vector center, Vector direction, CustomShockwaveParams customShockwaveParams, `integer

CreateShockwaveRing(Entity source, Vector center, number radius, CustomShockwaveParams customShockwaveParams, Vector? direction, number? angleWidth, number? spacing, integer? numRings, number? ringSpacing, integer? ringDelay)

CustomShockwaveParams

boolean

Functions

CreateShockwave()

Entity? CreateShockwave(Entitysource,Vector position, CustomShockwaveParams customShockwaveParams)

Creates a new shockwave with the given params. Returns the spawned shockwave. If it can't spawn it, returns nil.

CreateShockwaveLine()

Entity? CreateShockwaveLine(Entitysource,Vectorcenter,Vector direction, CustomShockwaveParams customShockwaveParams, number? spacing, integer? delay, integer? numShockwaves)

Creates a shockwave line with the given properties. Returns only the first shockwave spawned.

CreateShockwaveRandomLine()

Entity? CreateShockwaveRandomLine(Entitysource,Vectorcenter,Vectordirection, CustomShockwaveParams customShockwaveParams, integer |RNG? seedOrRNG = tsil.rng.getrandomseed() , integer? randomOffset, number? spacing, integer? delay, integer? numShockwaves)

Creates a shockwave line with the given properties. Each shockwave is spawned with a random offset. Returns only the first shockwave spawned.

CreateShockwaveRing()

Entity[] CreateShockwaveRing(Entitysource,Vectorcenter, number radius, CustomShockwaveParams customShockwaveParams,Vector? direction, number? angleWidth, number? spacing, integer? numRings, number? ringSpacing, integer? ringDelay)

Creates a shockwave ring with the given properties. Returns the spawned shockwaves. If multiple rings are set to spawn, returns only the shockwaves spawned in the first ring.

CustomShockwaveParams()

CustomShockwaveParams CustomShockwaveParams()

@class CustomShockwaveParams @field Duration integer @field Size number @field Damage number @field SelfDamage boolean @field DamagePlayers boolean @field DestroyGrid boolean @field GoOverPits boolean @field Color Color @field SpriteSheet string @field Sound SoundEffect @field SoundMode ShockwaveSoundMode Creates a new CustomShockwaveParams object.

GetCustomShockwaveData()

table? GetCustomShockwaveData(Entity entity)

Helper function to get a custom shockwave's data.

IsCustomShockwave()

boolean IsCustomShockwave(Entity entity)

Helper function to check whether a given entity is a custom shockwave.

Last updated