• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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