| 06-06-2004, 08:01 PM | #1 |
What would be the right conditional statement to check if there are enemy air units in range of 500 from a certain unit? I tried many constructs but neither works and they all look so complicated that I'm thinking there must be a simpler solution. Would that do?: Unit - Order (Casting Unit) to Attack (Random Unit from (Units within 500 of (Position of (Casting Unit)) matching (((Matching Unit) is a flying Unit) Equal to True) and (((Matching Unit) belongs to an enemy of (Owner of (Casting Unit))) Equal to True)))) |
| 06-07-2004, 06:27 AM | #2 | |
Here, I had nothing better to do, so I made an ability that you asked for. Go figure, I learned something new myself. (and ability isn't so bad either) :) things missing: 1 can't get experience when killed enemy with the ability 2 doesn't wake enemy units up 3 will take off HP from all flying units around (friendly too) 4 and maybe something else.... important points: 1 make sure you destroy the group after you are done( just like i do at the end), the map doesn't leak if u do 2 the global variable is required if u do it my way 3. look at the jass version of the spell, no need for global variable that way k, enjoy p.s. Quote:
LOL |
| 06-07-2004, 06:37 PM | #3 |
Uhm, why the LOL in response to my snippet? And thanks, your example crashed WE because there is an unsupported function within. Are you using WEUnlimited or UMSWE? Well, either way, maybe next time tell people with standard WE so they don't lose work when their WE crashes. |
| 06-07-2004, 07:19 PM | #4 | |
Quote:
heh big sorry about that, i am using umswe. :) sorry bout the crashed work p.s. the lol is not making fun of you , just the function looks mad long, looks funny |
