mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-19 14:53:56 -07:00
Use HFSM for unit AI. Support queuing orders. Automatically attack back when attacked. Automatically gather from farms after building them. This was SVN commit r7775.
6 lines
204 B
JavaScript
6 lines
204 B
JavaScript
Engine.RegisterInterface("Attack");
|
|
|
|
// Message sent from Attack to the target entity, each
|
|
// time the target is damaged.
|
|
// Data: { attacker: 123, target: 234 }
|
|
Engine.RegisterMessageType("Attacked");
|