DAI 3.0 · PROJECTILES

Build a Ricocheting Projectile

Use DAI’s live projectile speed/gravity plus collision, ricochet, homing and return logic.

1. Start the projectile

Use Projectile Starter. The carrier identifies the projectile entity used by the runtime; stats.projectile_speed and stats.gravity are now live.

2. Add physics

"stats": {"projectile_speed": 3.0, "gravity": 0.0},
"projectile": {
  "lifetime": 100, "damage": 6, "ricochets": 2,
  "homing_radius": 0, "return_to_owner": true,
  "return_after_ticks": 28, "hit_allies": false
}

3. React to impacts

"events": {
  "hit_entity": "action:demo:disc_hit",
  "hit_block": "action:demo:disc_wall",
  "ricochet": "action:demo:disc_bounce",
  "return": "action:demo:disc_return",
  "expire": "action:demo:disc_expire"
}
Use the Creator: these schemas can be pasted into the type-specific JSON fields in DAI Content / Runtime Definitions. Unknown fields are preserved on import/export.