Announcement

Collapse
No announcement yet.

Weapon Attachment - little help needed.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Weapon Attachment - little help needed.

    Sorry, another n00b question I expect but I need a little help again. I've been practicing writing some code for various weapons and I've just got a little trouble with the latest one. I'm sure I could sort if I re-imported the model, but I'd really prefer not to because UnrealEd seems to have a problem saving over animation packages....

    So, as the screen below shows the weapon sort of floats above the guys arms because when I imported it, it was too high I think. Is there anyway I can alter this by setting values or using a socket?



    Thanks

    #2
    If you are coding in ut2004, you can use RelativeRotation, and RelativeLocation.

    Here is a sample of an attachment class for my own model:

    Code:
    defaultproperties
    {
    	RelativeLocation=(X=28.220459,Y=-13.958887,Z=142.328381)
    	RelativeRotation=(Pitch=32768,Yaw=48320,Roll=0)
    }
    Of course, you'd have to find your own values. Just adjust location until it looks about right, but the rotation, you can just leave alone (don't even put that line of code in). All you'd need to do (since everything else is lined up good), is adjust the Z axis to make it lower:

    Code:
    defaultproperties
    {
    	RelativeLocation=(Z=142.328381)  // adjust it until it's lower
    }

    Comment


      #3
      Thanks! That's exactly what I needed! :up:

      Comment

      Working...
      X