• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

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 23
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