HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

UnitPropWindow

02-27-2009, 10:53 AM#1
akolyt0r
Today i stumbled upon the natives
Collapse JASS:
native GetUnitPropWindow takes unit whichUnit returns real
native SetUnitPropWindow takes unit whichUnit, real newPropWindowAngle returns nothing

i messed with them a little bit, and i havent noticed any effect on the game at all ...
Now i wonder if anyone knows (more than me..) if they have any effect on the gameplay..
Well ..because if not ..you could use them to "attach" reals to units (like UnitUserData) ....well its basically much more limited (range: 0 -> 2*Pi ....higher or smaller values will be changed to Modulo(Value,2*Pi) )
02-27-2009, 05:18 PM#2
snowtiger
Did you try to rotate the units? The 0 -> 2Pi seems to show that it has something to do with rotation. Not sure though.
02-27-2009, 07:33 PM#3
xombie
Collapse JASS:
native GetUnitDefaultPropWindow takes unit whichUnit returns real

This seems to always return 60.
02-27-2009, 07:45 PM#4
Bobo_The_Kodo
^It depends on the art - propulsion window variable for unit

I think it has to do with what angles a projectile can be launched at?
02-27-2009, 08:11 PM#5
xombie
That makes a lot of sense. I don't know how I didn't connect 'Propulsion Window' and 'PropWindow' in my head.