Explosions and Fireworks

Explosions and Fireworks - by TheShamanKing

Message me on discord - Chestionar Online#1524 - for any questions, feedback or ideas

This package lets you easily create customizable explosions and fireworks.
Effortlessly change the size of the explosion. Use Explosion with Detonator template to test.
Showcase: Crayta

Templates:

  • Explosion


This is the basic explosion effect. Use the “power” property to customize size.

Properties:
  • playOnSpawn: Detonates the explosion on init
  • power: Size of the explosion
  • explosionColor: The color of the explosion
  • useSound: Toggle sound (On/Off)
  • useCameraShake: Toggle camera shake (On/Off)
  • autoDestroy: Destroy entity after first explosion (does not allow repeating explosions)
  • interactMsg: Prompt message for interaction (Detonate)
Function to call to activate effect:
  • ‘Detonate()’

  • Explosion - with Detonator

Same as previous but with interactable detonator included. Use this to easily test your explosion settings.

  • FireworkBig - Distant


This is for use with distances greater than 6000 units. Preferably between 2500 - 20000 units.

Properties:
  • playOnSpawn: Launches the firework on init
  • height: Travel height
  • heightRandom: Randomize travel height (0=none, 10=max)
  • angleRandom: Randomize launch angle (0=none, 10=max)
  • speed: Speed multiplier (1=slow, 10=fast)
  • randomizeColor: Randomize main effect color
  • color: Main effect color
  • afterSparks: Use after sparks effect (On/Off)
  • repeating: Reactivate the effect after it has ended
  • repeatTimeMin: Minimum time to wait before reactivating (seconds)
  • repeatTimeMax: Maximum time to wait before reactivating (seconds)
  • useSound: Toggle sound (On/Off)
  • soundDelay: Sound delay caused by distance (about 0.1 per 7000 units of height + distance)
  • autoDestroy: Destroy entity after first launch (does not allow repeating launches)
  • interactMsg: Prompt message for interaction (Launch Firework)
Function to call to activate effect:
  • ‘Fire()’

  • FireworkMedium

This is for use with distances less than 6000 units. Preferably between 500 - 2500 units.
Unfortunately, the effect does not get rendered at higher distances.

Properties:
  • playOnSpawn: Launches the firework on init
  • height: Travel height
  • heightRandom: Randomize travel height (0=none, 10=max)
  • angleRandom: Randomize launch angle (0=none, 10=max)
  • speed: Speed multiplier (1=slow, 10=fast)
  • randomizeColor: Randomize main effect color
  • color1: Main effect color1
  • color1: Main effect color2
  • sizeMin: Minimum size of the firework explosion
  • sizeMax: Maximum size of the firework explosion
  • repeating: Reactivate the effect after it has ended
  • repeatTimeMin: Minimum time to wait before reactivating (seconds)
  • repeatTimeMax: Maximum time to wait before reactivating (seconds)
  • useSound: Toggle sound (On/Off)
  • autoDestroy: Destroy entity after first launch (does not allow repeating launches)
  • interactMsg: Prompt message for interaction (Launch Firework)
Function to call to activate effect:
  • ‘Fire()’
Notes:

FireworkMedium effect does not render at distances greater than around 6000 units.

2 Likes