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

Truncate UnitTypeId to fit array?

Status
Not open for further replies.
Level 15
Joined
Nov 30, 2007
Messages
1,202
I don't know exact numbers, but their range is much too large for that you could just substract a number. Human units for example start with 'h' + 'xxx', while undead units start with 'u' + 'xxx'. The difference between 'h000' and 'u000' easily ecxeeds the array limit for sure.

Why no hashtable?

I'll use hashtables, i just wanted to write something that didnt use Table without having to use static if to not alterate between hashtable and table... and keep everyone happy... It was a dream! ^^
 
Status
Not open for further replies.
Top