| 12-29-2003, 08:01 PM | #1 |
I was try to set a unit prop window so it would have the unit would rotate but it seems to do nothing at all? heres a pic of what want unit to look like for better idea Feet head |-------------------------------( ) | face down If you have and idea how to do it please say so i dont want to have to add this anmation to all my units Via 3dmax. |
| 12-30-2003, 10:49 AM | #2 |
Your best bet is to do this: Code:
local unit whichUnit = ... call SetUnitLookAt(whichUnit, "chest", whichUnit, CosBJ(GetUnitFacing(whichUnit))*10.0, SinBJ(GetUnitFacing(whichUnit))*10.0, 0.0) You can also use this function. Note that it only resets when you call ResetUnitLookAt(), but the chest will not turn around with the feet when the unit turn another direction. |
