| 06-14-2004, 06:13 AM | #1 |
I use UnitRemoveAbility( 'Amov', udg_HeroUnit ) and all of the unit's movement commands are removed--that's fine. However later, when I use UnitAddAbility( 'Amov', udg_Hero_Unit ), the movement commands remain inactive. Same thing occurs with Aatk for the attack commands... Does anyone have any insight on this topic? Possibly a work-around? I'm using Hero units. The reason I'm needing to remove these things is so that I can temporarily use that area to display multiple abilities... I need the full grid of 12 squares. If anyone happens to know how to simply remove and later re-add the icons, instead of the abilites, then that'd be perfect. |
| 06-14-2004, 07:28 AM | #2 |
As far as I know, removing the icons without removing the move and attack abilities is impossible, and adding those abilities is impossible... You would either have to somehow replace the unit with an identical one to restore the move and attack abilities, or somehow use a spellbook or build ability to show the new set of icons. |
