HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Change Unit Size

05-16-2006, 03:10 PM#1
Tim.
Collapse JASS:
native SetUnitScale takes unit whichUnit, real scaleX, real scaleY, real scaleZ returns nothing
Trigger:
Animation - Change No unit's size to (100.00%, 100.00%, 100.00%) of its original size

Anyone know much about these? (Of course the GUI one is just a mask over the native). From what I can tell nothing happens unless the X and Y values are identical. Also the Z value is totally ignored at all times. No matter what value it is set to it never seems to change a thing.

I am trying to make a unit’s X and Y remain the same, but make the Z much smaller. Any info would be much appreciated.
05-16-2006, 03:16 PM#2
oNdizZ
This has been mentioned in another thread. It was about a slam spell or something, that flatted the target. Can't remember the name though, anyway, it seemed as if the only way would be to make a new animation for it.
05-16-2006, 04:59 PM#3
Tim.
Hmm I hope there is a work-around other than that.
05-16-2006, 07:00 PM#4
Chuckle_Brother
There probably is. Let me break out my thinking hat and I will get right on it.

If anyone cares my thinking hat is a mighty spiffy looking black fedora that, I must say, makes me look dash cunning. Not to mention secksy.
05-16-2006, 07:43 PM#5
MasterofSickness
This doesn't really respond to the question , but to write down what I know from that problem:
If you try to change a units size with the normal Animation - GUI - command, then the units size will only change for the first value, the x-value.
Because of some strange things, the units size will not really changed by x, but for x as x,y,z.
Example:
1) size (100, 50, 200) will make the units size to (100, 100, 100)
2) size (375, 400, 50) will make the units size to (375, 375, 375)

It doesn't matter if you have 50, 100 or 5000 for the y- or the z- value,
the size will only go with the x- value.
So, y- and z- values are ignored in the units object task without changing something special...

If you use the doodads task and choose a doodad, for example a rock,
and then change its modelpath to any unit, then the units size fully reacts to the x-, y- and z- values!!
That means that it is at least possible to change a units size correctly, but I don't know how you do this for units with triggers...

This should just help to make the wheel begin to turn, to find a way.
Hope it helps a bit...
05-16-2006, 08:21 PM#6
Tim.
Right, I thought that being able to scale doodads properly but units not was odd as well.
05-17-2006, 08:45 AM#7
MasterofSickness
Quote:
tho that only works on all 3 dimensions at the same time. Scaling 1 dimension at a time doesnt work.

Link: http://wc3campaigns.com/showthread.p...ange+unit+size
(post 3 from iNfraNe)

Seems to be getting more difficult...
05-17-2006, 08:47 AM#8
Tim.
Yes, I think we've got that now. :P

The question is do we have a work-around?