Results 1 to 4 of 4

Thread: my Question about Pawn Translation...

  1. #1
    Masoud
    Guest

    my Question about Pawn Translation...

    Hi;

    The question is how could I change my Pawn Mesh origin, in UnrealScript?

    I put this code in my Pawn :

    self.Mesh.Translation.X = -50;

    But it doesn't work....

  2. #2
    meowcat
    Guest
    As far as I know you can't, but there are some uscript options that might work (though not quite as cleanly as adjusting the mesh origin in the modeling program or UEd):
    1. Adjust the PrePivot vector variable (keeping in mind that you will have to add some replication/client side code to get other clients to see the change).
    2. Use the SetBoneLocation or SetBoneDirection functions to change the mesh's rootbone location.

  3. #3
    VendorX
    Guest
    Code:
    Mesh.SetTranslation(NewTranslation);
    ...and this is not the same engine - return to UDK section.

  4. #4
    Masoud
    Guest
    VendorX:
    Thanks, it works...

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •