• 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.

[JASS] How does handle id work?

Status
Not open for further replies.
If you remove/destroy a handle (and assuming you null all pointers) it's handle ID will be freed/recycled. (meaning, it will be available for use) The counter will not increase infinitely.

I don't remember whether it does it so that the last removed that gets priority for use or if it is the first removed that gets priority for use though.
 
Level 17
Joined
Nov 13, 2006
Messages
1,814
If I have a item, remove it and instantly create a new item,
would the new item have the same handle id as the one destroyed?
or does the counter increase infinitely?

in ur case u cant use hashtable for keep tracking the handle id?
or something else like u make linked list for keep tracking the item handle id?
or just use item custom value, so something liek this item custom value = handleid(item)?
 
Status
Not open for further replies.
Top