Handle of variable unit?

staind25

TH.net Regular
Reaction score
7
I'm new to hashtables...was wondering if there's a way to reference a variable unit in the following function:
Trigger:
  • Hashtable - Save 0.00 as 0 of (Key (MyUnit)) in MyTable

Is there a way to get the MyUnit variable in there? There doesn't seem to be an option to use unit variables here. I can't just reference any unit variable related to the event of the trigger because the unit I need to reference isn't in this trigger at all.
Thanks!!
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
613
You can't get handle IDs of variables. You'll need to store the handle ID of the unit into another integer variable to use it in hashtables.
 
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