Getting Unit ID

Discussion in 'JASS Zone' started by Hadezown, Aug 25, 2018.

  1. Hadezown

    Hadezown TH.net Regular

    Ratings:
    +5 / 0 / -0
    I'm using a damage detection system that stores unit variables for the dmg source and dmged target. I need to load data from a hashtable using the dmg source as a Handle ID but obviously it can't take a unit variable. Is there anyway to convert the unit into a unit ID?
     
  2. Hadezown

    Hadezown TH.net Regular

    Ratings:
    +5 / 0 / -0
    Figured it out. If anyone is wondering, just convert the load/save GUI functions to JASS and place the variable name as the paremeter for the GetHandleIdBj:

    set udg_Crystalis_TempCount = LoadIntegerBJ(1, GetHandleIdBJ(udg_GDD_DamageSource), udg_Crystalis_Table)
     

Share This Page