Jass documentation Database

JASS Documentation Database REFORGED


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

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

Function SetUnitState

Line: 2873
Location: common.j
Constant? no
Type: native
Arguments: unit whichUnit, unitstate whichUnitState, real newVal
Returns: nothing

Preview

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

Information about SetUnitState

Information contributed by City17
on February 25, 2022, 12:00:21 AM.
sets whichUnit's unit state to newVal (absolute value).

It's used to set current/max HP and mana. Example:
Code: jass
  1. call SetUnitState(myUnit, UNIT_STATE_MAX_MANA, 105.0)

See: GetUnitState
Page loaded in 0.0855 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...