Getting Unit ID

Hadezown

TH.net Regular
Reaction score
5
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?
 

Hadezown

TH.net Regular
Reaction score
5
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)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top