ShockWaves
Last updated
Last updated
CustomShockwaveParams
table?
boolean
? CreateShockwave(
source,
position, CustomShockwaveParams customShockwaveParams)
Creates a new shockwave with the given params. Returns the spawned shockwave. If it can't spawn it, returns nil.
? CreateShockwaveLine(
source,
center,
direction, CustomShockwaveParams customShockwaveParams, number? spacing, integer? delay, integer? numShockwaves)
Creates a shockwave line with the given properties. Returns only the first shockwave spawned.
Creates a shockwave line with the given properties. Each shockwave is spawned with a random offset. Returns only the first shockwave spawned.
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()
@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.
Helper function to get a custom shockwave's data.
Helper function to check whether a given entity is a custom shockwave.
?
( source, position, CustomShockwaveParams
customShockwaveParams)
?
( source, center, direction, CustomShockwaveParams
customShockwaveParams, number?
spacing, integer?
delay, integer?
numShockwaves)
?
( source, center, direction, CustomShockwaveParams
customShockwaveParams, `integer
[]
( source, center, number
radius, CustomShockwaveParams
customShockwaveParams, ?
direction, number?
angleWidth, number?
spacing, integer?
numRings, number?
ringSpacing, integer?
ringDelay)
()
( entity)
( entity)
? CreateShockwaveRandomLine(
source,
center,
direction, CustomShockwaveParams customShockwaveParams, integer |
? seedOrRNG =
tsil.rng.getrandomseed() , integer? randomOffset, number? spacing, integer? delay, integer? numShockwaves)
[] CreateShockwaveRing(
source,
center, number radius, CustomShockwaveParams customShockwaveParams,
? direction, number? angleWidth, number? spacing, integer? numRings, number? ringSpacing, integer? ringDelay)
table? GetCustomShockwaveData(
entity)
boolean IsCustomShockwave(
entity)