0ad/binaries/data/mods/public/simulation/components/interfaces/Attack.js
quantumstate 3715985f1a Add battle detection support to the simulation. Refs #1425 (Patch by Zoot)
The audio code does not yet support actually playing battle music.

This was SVN commit r13091.
2013-01-20 22:47:59 +00:00

7 lines
232 B
JavaScript

Engine.RegisterInterface("Attack");
// Message sent from Attack to the target entity, each
// time the target is damaged.
// Data: { attacker: 123, target: 234, type: "Melee", damage: 123 }
Engine.RegisterMessageType("Attacked");