Page 1 of 1

Posted: Tue Apr 25, 2006 3:07 am
by Baak
I'd like to be able to detect when one or more units "attacks", but can't find this in any of the map actions (scripting).

I don't want to detect damage of other units, I simply want to know if someone attacks.


Is this possible? If so, what is the map action? :)

(No guessing please - just replies from people who know - thanks!)

Posted: Tue Apr 25, 2006 5:23 am
by haravikk
Geometry Filter, Tests for attacking monsters =)

Needs to trigger fairly regularly though, it's generally best not to have it set to never with a delay of zero unless you only have one or two GEOM's running at once.

You can even have it run the filter on EVERY monster on the map if you don't even know which ones are going to attack, but for a constantly running GEOM (that means never, or set to end after a successful or failed execution btw, they all do the same thing, but the execution ones do eventually end!) I wouldn't recommend it, mainly for responsiveness but also for the sake of you not pushing the map too hard and asking for a crash :)

I'd note though, even with it constantly running on a small set of units it may not be perfect, you should try chucking a huge load of units and stress-testing it to be sure it's going to behave exactly as you want.