Jass documentation Database

JASS Documentation Database REFORGED

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

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

Function UnitAddItemByIdSwapped

Line: 2922
Location: blizzard.j
Constant? no
Type: function
Arguments: integer itemId, unit whichHero
Returns: item


Extra spaces may have been removed from the original file to show the function in a comfortable way.
  1. function UnitAddItemByIdSwapped takes integer itemId, unit whichHero returns item
  2.     // Create the item at the hero's feet first, and then give it to him.
  3.     // This is to ensure that the item will be left at the hero's feet if
  4.     // his inventory is full.
  5.     set bj_lastCreatedItem = CreateItem(itemId, GetUnitX(whichHero), GetUnitY(whichHero))
  6.     call UnitAddItem(whichHero, bj_lastCreatedItem)
  7.     return bj_lastCreatedItem
  8. endfunction
"Woah! Gonna need a new hamster." Hmmm... there's no info about this keyword... be the first one in contribute with the keyword UnitAddItemByIdSwapped. You must be logged into the site in order to give us a hand in keeping updated the information. If you don't have an account, you can create one here.
Page loaded in 0.1018 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...