Jass documentation Database

JASS Documentation Database REFORGED


Results for the query "GetUnitState" as a "function"

The search keyword must be a single word (no spaces).

Function GetUnitState

Line: 2983
Location: common.j
Constant? yes
Type: native
Arguments: unit whichUnit, unitstate whichUnitState
Returns: real

Preview

Extra spaces may have been removed from the original file to show the function in a comfortable way.
  1. constant native GetUnitState takes unit whichUnit, unitstate whichUnitState returns real

Information about GetUnitState

Information contributed by City17
on February 25, 2022, 12:02:08 AM.
returns whichUnit's current unit state as an absolute value.

It's used to retrieve a unit's current/max HP and mana. Example:
Code: jass
  1. call GetUnitState(myUnit, UNIT_STATE_MAX_MANA) // returns 285.0

See: SetUnitState
Page loaded in 0.1178 seconds.
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...