How can you make your character in the third person template be holding a flashlight?

How can you make your character in the third person template be holding a flashlight?

Someone asked this about a torch last night…

Go into the Anim Blueprint – Double click “AnimGraph”

  • Right click and add a few Transform
    [Modify] Bone nodes.
  • Click each in turn, setting its alpha
    to 1.0 and on the right side under
    Details – selecting the bone you
    want to move (upperarm_R, lowerarm_R,
    the hand and fingers of the same arm)
  • And change the setting in details
    under Rotation to “Replace Existing”.
  • Adjust the rotations until the arm and hand are
    in a position as if holding a
    flashlight.
  • Now add a Float variable “Flashlight”
    and tie it to the alpha of each of
    the nodes. (the image shows only 2
    nodes, to position the arm as bent to
    hold a torch)
  • In the player character - you can
    Cast to the Anim Blueprint and set
    the “flashlight” float to 1 to force
    that pose into any animation taking
    place.
  • Add the mesh and lights to simulate a
    flashlight to the character
    blueprint, parented to the Mesh - and
    with the Hand_R socket selected so it
    sticks to the right hand)

You can remove the flashlight by setting the visibility of the parts making it up Off, and casting to the Anim BP and setting the “Flashlight” float to 0.

2 Likes

You need to open your Skeletal
Mesh
of your Character and create a
socket at his Hand (where the
flashlight should be placed). After
that, you need to go to the Character
BP and add a Mesh as a child to the
character mesh
(your hands i guess)
and select the placeholder (or
flashlight) model. Than you would
chose the socket you made inside the
component options of the lower left
side.
Taken from -exi from this post:
How to create a hand holding a flashlight? - Community & Industry Discussion - Epic Developer Community Forums