Data Realms Fan Forums http://45.55.195.193/ |
|
How do I find the parent of a MO? http://45.55.195.193/viewtopic.php?f=73&t=23443 |
Page 1 of 1 |
Author: | Coops [ Mon May 02, 2011 3:22 am ] |
Post subject: | Re: Woah woah woah woah woah. What the hell!? |
Did you use it the same way before? |
Author: | CaveCricket48 [ Mon May 02, 2011 4:18 pm ] |
Post subject: | Re: Woah woah woah woah woah. What the hell!? |
Mind posting the script? |
Author: | CaveCricket48 [ Tue May 03, 2011 1:32 am ] |
Post subject: | Re: Woah woah woah woah woah. What the hell!? |
Huh, abdul formats his scripts differently. Code: if RelVel.X > 35 then RelVel.X = RelVel.X * self.airLarge -- Air resistance for forward movement else RelVel.X = RelVel.X + self.acc end -- Acceleration Take those lines you mentioned, and put them like: Code: print(RelVel); if RelVel.X > 35 then RelVel.X = RelVel.X * self.airLarge; -- Air resistance for forward movement else RelVel.X = RelVel.X + self.acc; end -- Acceleration Not as compact, but maybe CC was having issues reading the Lua. I doubt this is the fix, but it's the only weird thing I found so far. Oh, and note that printout I placed in too. Check what it says. |
Author: | CaveCricket48 [ Tue May 03, 2011 1:42 am ] |
Post subject: | Re: Woah woah woah woah woah. What the hell!? |
Any printout message? |
Author: | CaveCricket48 [ Tue May 03, 2011 1:55 am ] |
Post subject: | Re: Woah woah woah woah woah. What the hell!? |
What I'm thinking is that the script isn't grabbing anything for "self.Parent," which is a problem since Abdul doesn't have any safety checks to stop the code if that is the case. So uh, right under line 4 put: Code: print(self.Parent = MovableMan:GetMOFromID(self.Sharpness)); and see what it says. |
Author: | CaveCricket48 [ Tue May 03, 2011 2:03 am ] |
Post subject: | Re: Woah woah woah woah woah. What the hell!? |
Woops, silly me. Change that printout like to: Code: print(self.Parent.PresetName); ConsoleMan:SaveAllText("errorDump.txt"); And look in your CC folder for the "errorDump.txt". |
Author: | CaveCricket48 [ Tue May 03, 2011 2:45 am ] |
Post subject: | Re: Woah woah woah woah woah. What the hell!? |
It's trying to grab an MOID from its Sharpness, meaning that other script you mentioned probably controls the Sharpness value to link it to the correct MO. |
Author: | CaveCricket48 [ Tue May 03, 2011 4:33 pm ] |
Post subject: | Re: Woah woah woah woah woah. What the hell!? |
Post the pther script? And describe the method that you're using to spawn the thing with the script on it. |
Author: | CaveCricket48 [ Thu May 05, 2011 12:28 am ] |
Post subject: | Re: How do I find the parent of a MO? |
Well, how's your MOSParticle being spawned? Fired from an HDFirearm? |
Author: | CaveCricket48 [ Thu May 05, 2011 2:47 am ] |
Post subject: | Re: How do I find the parent of a MO? |
http://pastebin.com/A3jQQUrT Replace the current function Create() with that. Also, note lines 7 and 14. Oh, and be sure to change your FireVelocity in INI code to 1. |
Author: | CaveCricket48 [ Thu May 05, 2011 2:58 am ] |
Post subject: | Re: How do I find the parent of a MO? |
Woops, left an unneeded variable in there. Fixed. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |