Log inGet started
World

DOOM.wad

Branchmain
Branchesmain
Commit309bbc2517

README.md

DoomProjectile

A monster's fired shot: flies straight along its direction, damages the player on contact, and despawns on a wall hit or after its lifetime elapses.

Public fields

  • dirX/dirY/dirZ: number — unit travel direction.
  • speed: number — travel speed in metres/second.
  • damage: number — damage dealt to the player on contact.
  • life: number — seconds before the projectile despawns.

Usage

entity(id).component.add("DoomProjectile", { dirX = 0, dirY = 0, dirZ = 1, speed = 12, damage = 8, life = 4 })