Detecting if a unit attacks during game - Can find script action - HELP! :)

A forum for discussing map making ideas and problems for the Myth series.
Post Reply
User avatar
Baak
Posts: 1109
Joined: Sat Mar 20, 2004 6:26 pm
Location: Mything

Post 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!)
User avatar
haravikk
Site Admin
Posts: 987
Joined: Mon Mar 22, 2004 12:56 pm
Location: Scotland

Post 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.
Being Haravikk gets you girls like these:
Image
Post Reply