• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Looking for a dummy ability for Heroes

Status
Not open for further replies.
Level 13
Joined
Mar 19, 2010
Messages
870
Hi,

i want to give an hero a dummy ability which is 100% hidden, No icon, no buff icon. I just want to ask for GetUnitAbilityLevel == 1 to do somethings... what i can i take. It should not have any effects for the hero!!

Best Reg.
 
Level 22
Joined
Feb 6, 2014
Messages
2,466
What are you trying to achieve from this? If you have a Unit Indexer, then just use
'Set someInteger[CustomValue of Hero] = someLevel' or if it is just for a boolean comparison, just add the Hero to a Unit Group. Instead of GetUnitAbilityLevel(hero, ability) == 1, you use IsUnitInGroup(hero, someGroup).
It makes things easier/more efficient than using an ability.
 
Status
Not open for further replies.
Top