Jass documentation Database

JASS Documentation Database REFORGED

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

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

Function GetUnitName

Line: 2987
Location: common.j
Constant? yes
Type: native
Arguments: unit whichUnit
Returns: string


Extra spaces may have been removed from the original file to show the function in a comfortable way.
  1. constant native GetUnitName takes unit whichUnit returns string

Information about GetUnitName

Information contributed by City17
on April 07, 2022, 05:27:12 PM.
returns localized name for whichUnit.

Code: Lua
  1. -- Lua
  2. u = CreateUnit(Player(0), FourCC("hfoo"), -30, 0, 90)
  3. print(GetUnitName(u)) --> "Footman"
Page loaded in 0.1264 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...