• 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.

Boolean or alike, question.

Status
Not open for further replies.
Level 3
Joined
Mar 26, 2007
Messages
51
Is there any bolean that says something like: Unit has ability (custom ability) equal to true. Or/and one with Unit has ability (custom ability) of level (x) equal to true?. I appreciate any helping responds!
 
Level 4
Joined
May 17, 2008
Messages
75
GetUnitAbilityLevel takes unit whichUnit, integer abilcode returns integer

Example: if GetUnitAbilityLevel(GetTriggerUnit(), 'A001') == 1 then...

Or if you mean GUI, it's under "integer comparison" as "level of ability for unit". If the unit does not have the ability it is considered zero.
 
Status
Not open for further replies.
Top