Attacker hits.

The place to post your WML questions and answers.

Moderator: Forum Moderators

Forum rules
  • Please use [code] BBCode tags in your posts for embedding WML snippets.
  • To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Post Reply
BajMic
Posts: 72
Joined: January 24th, 2023, 1:22 am

Attacker hits.

Post by BajMic »

Hello,

I need to ask, because wiki is a little too concise on the matter. Is it possible to fire an event if a specific unit, e.g., race=dwarf, fires a ranged attack and hits?

What I want to achieve is to trigger an event after a Dwarf Thundered line unit fires its musket (and hits, thereby generating noise).

Thanks in advance.
User avatar
Pentarctagon
Project Manager
Posts: 5732
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: Attacker hits.

Post by Pentarctagon »

You'd use the [filter] and [filter_attack] tags for that.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
Post Reply