View unanswered posts | View active topics It is currently Thu Dec 26, 2024 4:35 pm



Reply to topic  [ 3 posts ] 
 Problem with AbsRotateTo 
Author Message
User avatar

Joined: Fri Oct 17, 2008 9:46 pm
Posts: 5212
Location: The Grills Locker.
Reply with quote
Post 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


Thu May 28, 2009 2:33 am
Profile WWW
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post 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.


Thu May 28, 2009 2:40 am
Profile
User avatar

Joined: Fri Oct 17, 2008 9:46 pm
Posts: 5212
Location: The Grills Locker.
Reply with quote
Post 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


Thu May 28, 2009 2:59 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.081s | 15 Queries | GZIP : Off ]