| 11-17-2006, 04:39 AM | #1 |
I am looking for a way to remove the attack and attack ground buttons from a particular unit, or even from every unit in my map, so that they can still attack and have that ability, but it is not castable by the player. Any help would be appreciated. |
| 11-17-2006, 04:49 AM | #2 |
I think there's an "Attack # - Show UI" or something like that, try unchecking that, don't know if it works for attack ground tho. |
| 11-17-2006, 04:51 AM | #3 |
call UnitRemoveAbility(YourUnit, 'Aatk')
Will remove the attack ability. call UnitRemoveAbility(YourUnit, 'Amov') Removes the move ability. This method has some irreversable effects, but has it's advantages. |
| 11-17-2006, 05:14 AM | #4 | |
Quote:
Such as...? |
| 11-17-2006, 05:31 AM | #5 |
It stops your unit attacking/moving permanently. |
| 11-17-2006, 06:42 AM | #6 |
And that is an advantage how exactly? |
| 11-17-2006, 11:50 AM | #7 |
I don't think anyone has yet figured out a way to remove any of the basic command icons without removing the ability to attack/move etc. (Or removing all icons ala ward classification) |
| 11-17-2006, 11:52 AM | #8 | |
Quote:
Once you want them back, you can replace the unit with a freshly created unit of the same type. Just remember to reset any pointers. |
| 11-17-2006, 12:06 PM | #9 |
Whats wrong with my suggestion? ;) |
| 11-17-2006, 12:24 PM | #10 |
Because it removes them for all units of that type. That means the fix I proposed wouldn't work for your idea. |
| 11-17-2006, 01:15 PM | #11 | |
Quote:
Incorrect. Although it has certain drawbacks, the following post suits hero-oriented maps perfectly: http://www.wc3campaigns.net/showthre...119#post859119 |
| 11-17-2006, 01:55 PM | #12 |
Ok, basic command buttons was misused there. But it holds true for the two I mentioned. |
| 11-17-2006, 02:12 PM | #13 |
I rather dislike that system, Karu. While I'm sure if you built a map around it, it would work great -- I hate being forced to build a map around a system for me to reap it's advantages. |
| 11-17-2006, 03:14 PM | #14 |
Wait... since when did Show UI set to false remove the attack button? :S I thought it just didn't show the attack on the middle interface (where it shows damage etc). |
| 11-17-2006, 04:46 PM | #15 | |
Quote:
Is it important whether or not you like the system? The system is an approach. A possibility. You hating or not hating the facts and circumstances involving the approach is in my opinion not the kind of valuable information that is worth posting about in a thread that isn't even about that system. If you posted those same comments in the relevant, correct, thread, you would see right away how little they add to the discussion there. |
