• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Solved] Save-Load Unit key from hashtable

Status
Not open for further replies.
Level 14
Joined
Sep 17, 2009
Messages
1,297
So i got this issue when I try to get an unit's handle what I saved in a variable before.

Any other way to get the unit's hadle saved in a variable?
obviously i need it for hashtables

attachment.php
 

Attachments

  • problem.jpg
    problem.jpg
    29.7 KB · Views: 530
Last edited:
It is because of JNGP. It hacks into worldedit121.exe instead of worldedit.exe. I don't know how to fix it yet.

You can either use the regular editor or use GetHandleId(udg_MyVariable). For example, create an integer named "HashKey":
  • Set TempUnit = (Triggering Unit)
  • Custom script: set udg_HashKey = GetHandleId(udg_TempUnit)
  • Hashtable - Save TempUnit as 0 of HashKey in...
Not sure if the triggers are correct, but you get the point.
 
Status
Not open for further replies.
Top