Data Realms Fan Forums http://45.55.195.193/ |
|
My mod is almost done, but I am having trouble with offsets http://45.55.195.193/viewtopic.php?f=1&t=15528 |
Page 1 of 1 |
Author: | Foogooman [ Wed Jun 24, 2009 6:51 am ] |
Post subject: | My mod is almost done, but I am having trouble with offsets |
I have a gun and my gun has a magazine. No matter what I do to the code, my magazine won't move. I want it in the middle of the gun, but there isn't a single variable available to change it. I tried changing Code: Magazine = Magazine CopyOf = Magazine C4 Shotgun ParentOffset = Vector X = 9 Y = 0 and Code: EjectionOffset = Vector X = 9 Y = 0 Neither of them change where the magazine goes. I have searched the forum and no one seems to know how to move the magazine. |
Author: | MaximDude [ Wed Jun 24, 2009 6:56 am ] |
Post subject: | Re: My mod is almost done, but I am having trouble with offsets |
Doin' it wrong. Find "JointOffset" in the magazine code and change it. ParentOffset doesn't seem to do ♥♥♥♥, and EjectionOffset determines where the casings come out of. |
Author: | Foogooman [ Wed Jun 24, 2009 7:08 am ] |
Post subject: | Re: My mod is almost done, but I am having trouble with offsets |
Yeah, I actually figured it out :/ I hate when that happens. You try for 20 minutes trying to figure something out, and the moment you post for help you figure it out. Well while I'm here, any way to change the direction the magazine ejects? |
Author: | MaximDude [ Wed Jun 24, 2009 7:13 am ] |
Post subject: | Re: My mod is almost done, but I am having trouble with offsets |
Uhhhh... Apply force to magazine in the direction desired using lua? |
Author: | Duh102 [ Wed Jun 24, 2009 11:38 am ] |
Post subject: | Re: My mod is almost done, but I am having trouble with offsets |
MaximDude wrote: ParentOffset doesn't seem to do crap Sometimes you have to name the copied magazine (actually, anything that is being offsetted). Not sure exactly what makes it require the change, but to be safe you can always name your copy. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |