Log inGet started
Package

Emitter.component

Newest version

README.md

bulletPatternsKit.Emitter

A no-code bullet hell turret. Put it on any entity (a boss, a turret prop, an empty marker) and, while the game runs, it fires a catalog pattern from the entity every every seconds, turning the aim by rotate radians each volley. It needs no sibling components.

entity(id).component.add("Emitter", { pattern = "spiral", every = 0.08, rotate = 0.12, look = "bpNeedleCyan" })

Fields

  • pattern: aimed, spread, ring, spiral, doubleSpiral, flower, wave, shotgun, cross, wall, burstRing, sunburst.
  • every (s), volleys (0 = forever), speed and count (0 = the pattern's default), rotate (rad/volley).
  • angleDeg (base aim, 0 = +X, 90 = +Z) or aimAtPlayer (nearest entity of targetSet).
  • look, size, range (m), height (m above the entity's origin).
  • hit (handler name registered with BP.onHit), targetSet (default localPlayers).
  • synced: fire with BP.fireSynced so every peer sees the same volley; only the host runs it then.
  • active: pause/resume.

Changing a field while it runs restarts it with the new settings.

Methods

  • restart(): start again from the first volley. fired(): volleys since it last started.