Announcement

Collapse
No announcement yet.

(Solved) [Q.] 2 dark arms follow Pawn before he takes a weapon. How to disable them?

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

    (Solved) [Q.] 2 dark arms follow Pawn before he takes a weapon. How to disable them?

    Hi! I've set my FPS game's GameInfo (extending from UTGame) so the Pawn starts with no weapon (no LinkGun and no PhysicsGun) but can take weapons with PickUpFactories in levels.

    Code:
    defaultproperties
    {
        //makes Pawn start with no weapon: it takes off LinkGun in first one and PhysicsGun in second one
        DefaultInventory(0)=none
        bGivePhysicsGun=false
    }
    I've noticed that while the Pawn has no gun (when the game starts, for example) if I look straight down with an aproximate angle of 60 degrees, there are two black 3D models in front of the Pawn that follow its movement, one at each side of the Pawn, more o less aligned with his arms, that are upper.

    I'm almost sure that they are copies of Pawn's arms because of the model (the fingers look exactly the same) that is black (or simply with no lighting) except of an iluminated part at the back of the model.

    My Pawn class extends from UTPawn and I haven't changed anything of the physical model. Do you know or can try to guess why is this happening and/or how to disable it?

    #2
    Put this code to PostBeginPlay function of your Pawn class
    Code:
    if(ArmsMesh[0] != none)
        ArmsMesh[0].SetHidden(true);
    if(ArmsMesh[1] != none)
        ArmsMesh[1].SetHidden(true);
    This arms are holding weapon in first person view. Since in UT3 you always play with weapon, this game code is not dealing with this meshes if there are no weapons.

    Comment


      #3
      Thank you, @lentinant, that solved the problem and was an interesting lesson.

      Comment

      Working...
      X