| 01-12-2006, 05:23 PM | #1 |
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 |
There isnt such native. |
| 01-12-2006, 06:25 PM | #3 |
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 |
NO! we cant get a unit's size. I know jass |
| 01-12-2006, 07:29 PM | #5 |
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. |
