Jump to content

[Script] Translateto And Rotation


Recommended Posts

Bit noobish but I fail to rotate and object ("CowLeft") to 90 degrees. The object is just still and unmoving. Anyone know what's going on?

Function CowLeftTurn()
Float CurrentPosition = CowLeft.GetAngleZ()
If CurrentPosition > 359
CurrentPosition = 0
Endif
Float NewPosition = CurrentPosition+90
CowLeft.TranslateTo(0.0, 0.0, 0.0, 0, 0, NewPosition, 90, 100)
EndFunction

 

 

Link to comment
Share on other sites

  • 5 months later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...