Data Realms Fan Forums
http://45.55.195.193/

Problem with AbsRotateTo
http://45.55.195.193/viewtopic.php?f=73&t=15014
Page 1 of 1

Author:  Areku [ Thu May 28, 2009 2:33 am ]
Post subject:  Problem with AbsRotateTo

So I decided to make a script to fix the rotation of ACrabs that get stuck in weird angles. Should be fairly simple, and yet it doesn't work. The "rotation fixed" message appears, but nothing else happens. What am I doing wrong? Thanks in advance.

Code:
function Create(self)
-- The variables:
   self.SleepyHead = 0
   
end

function Update(self)
   if self:IsPlayerControlled() and UInputMan:KeyPressed(18) then
      self.AbsRotateTo = 0 ;
      print ("Tank rotation fixed!")
   end
end

Author:  Grif [ Thu May 28, 2009 2:40 am ]
Post subject:  Re: Problem with AbsRotateTo

Just use RotAngle? I've never seen the AbsRotateTo. And it seems like it's a function rather than a variable.

Author:  Areku [ Thu May 28, 2009 2:59 am ]
Post subject:  Re: Problem with AbsRotateTo

Changed to RotAngle and it now works. Thanks!

Weird, I'm pretty sure I saw AbsRotateTo being used for that function... somewhere. :P

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/