• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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