HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Returning Size of Unit

01-12-2006, 05:23 PM#1
Peekaboo
Is there a way to return the size of a unit? I want to make a trigger that increases the size of a unit by 1% every time the event happens, I did this at first by making a variable which increased each time the event was run, then did set unit size to (100 + <variable>)%, the problem is that some units don't start with 100% unit size, (eg.grunts) so the trigger actually shrank them from 110% to 101%. Can anyone help here?
01-12-2006, 05:40 PM#2
Nantuko Husk
There isnt such native.
01-12-2006, 06:25 PM#3
Peekaboo
But, the size of a unit must be stored somewhere, so surely there's some JASS that can return it? or is it stored in an arbitrary place in the memory that would be impossible to locate?
01-12-2006, 07:17 PM#4
Nantuko Husk
NO! we cant get a unit's size. I know jass
01-12-2006, 07:29 PM#5
johnfn
A lot of unit information is irretrivable (damage amount, armor amount, stuff like that, the exclusion being HP and MP)

The best way to go about it is to store variables for the different units you need the size of and then just access the variables when the size is needed.