Data Realms Fan Forums http://45.55.195.193/ |
|
Rocket Help http://45.55.195.193/viewtopic.php?f=1&t=19196 |
Page 1 of 1 |
Author: | SnowMonster20 [ Thu Jul 08, 2010 4:16 am ] |
Post subject: | Rocket Help |
Is there a way, be it .ini or fancy lua magic, to make it so rockets don't scuttle when upside down. Example: Remember the A-1 Mole Machine? When you flipped it it would scuttle. Same goes for current rockets and etc. Lets say I make a mole machine of my own. Anyway to make it so it wont scuttle when flipped or better yet, at all. DISCLAIMER I am not making a mole machine or anything even similar. |
Author: | Dylanhutch [ Thu Jul 08, 2010 4:38 am ] |
Post subject: | Re: Rocket Help |
Code: if self.RotAngle > 6.283185 then self.RotAngle = self.RotAngle - 6.283185 elseif self.RotAngle < -1.570796 then self.RotAngle = self.RotAngle + 6.283185 end I tried it but it didn't work. Though it might work for you. Try putting an extra 'end' on the end. Oh and. All credit goes to Abdul. Not sure if i spelt it right. Edited: Oh and yeah this should go in the lua forum. |
Author: | CrazyMLC [ Thu Jul 08, 2010 6:31 am ] |
Post subject: | Re: Rocket Help |
I think that this is one of those thins like IsScrap that we modders cannot change. Hopefully Data puts an option in to change it. Someone might have come up with some crazy lua script though. |
Author: | Grif [ Thu Jul 08, 2010 6:50 am ] |
Post subject: | Re: Rocket Help |
You can have a lua script flip the actual actor, and then switch to a sprite that's "upside down". I did something similar (sort of) on the original Plane, though it's not perfect. Abdul probably improved upon it with his UAVs. Important thing to remember with the script is that math.pi * 2 = a full circle, and adding or subtracting math.pi = the opposite side of the circle. And it's better to use math.pi than decimals, just for reference. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |