Warcraft 3 documentation
vJASS & Zinc Documentation
For the latest documentation about how it works vJASS and Zinc language layers for Warcraft III, please follow these links:
Jasshelper documentation - Zinc documentation - WC3 Optimizer documentation
This topic is the discussión abut the function BlzUnitDisableAbility. You can see all the information about this function keyword HERE.

[functions] BlzUnitDisableAbility No New Posts Jassdoc

Started by
City17

0 Members and 1 Guest are viewing this topic.

[functions] BlzUnitDisableAbility
on: April 17, 2022, 08:01:18 AM

disables/hides an ability for whichUnit.
flag aka "isDisabled": true = disable ability, cannot click. false = enable
hideUI aka "isHidden": true = completely hide icon. false = show icon. A visible icon shows if the ability is de/activated.

BUG (1.32.10 confirmed): The game counts isDisabled and hideUI internally as integers(?) If you called 5 times "hideUI = true" to hide an icon then you'll need to multiple times "hideUI = false" to show it again. I do not exactly understand how it's counted.

Example:
Code: Lua
  1. -- assume u is Human Peasant, AHbu is ability for Human building.
  2. -- keep enabled, but hide icon
  3. BlzUnitDisableAbility(u, FourCC"AHbu", false, true)

« Last Edit: April 17, 2022, 09:14:35 AM by City17 »



 

Started by moyack

Replies: 3
Views: 4232
Jassdoc

Started by Jedi

Replies: 5
Views: 14820
General Jass Discussion

Started by moyack

Replies: 40
Views: 58668
Jass Theory & Questions

Started by moyack

Replies: 0
Views: 658
Jassdoc

Started by moyack

Replies: 0
Views: 648
Jassdoc
Vivir aprendiendo.co - A place for learning stuff, in Spanish   Chaos Realm - The world of Game modders and wc3 addicts   Diplo, a gaming community   Power of Corruption, an altered melee featuring Naga and Demon. Play it now!!!   WC3JASS.com - The JASS Vault + vJASS and Zinc   Jetcraft - A Starcraft II mod   WormTastic Clan (wTc)   Warcraft RESOURCES Reforged: Modelos, mapas, proyectos y mas...