- Joined
- Oct 9, 2015
- Messages
- 721
Hey everyone, it's me (again). I would like to know if there's a way I can obtain the value of a unit's Sight Range? Thanks a lot in advance!
Unit-types are integers in JASS. You can store the unit-type into an integer using Custom script and use that as the parent key for the hashtable.I can handle hashtables but I could't find a way to store data on unit-type
I don't understand, what it does ?You can write sight-range at compile time, and access the same constant in runtime. See Cokemonkey11 / dragons / source / wurst / systems / Units.wurst — Bitbucket
I'm using this after creating the hashtable:Unit-types are integers in JASS. You can store the unit-type into an integer using Custom script and use that as the parent key for the hashtable.