• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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