Announcement

Collapse
No announcement yet.

How do I parent an actor to the camera?

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

    How do I parent an actor to the camera?

    So what I want to do is, in a first person game, when I press the right mouse button, the player has his/her right arm do a throwing animation.
    The problem is that I don't know how to make it so the arm animation stay infront of the camera, no matter where I look or go.

    So far I have it setup like this, within my character blueprint:

    Click image for larger version

Name:	dunno9_lvl.PNG
Views:	1
Size:	224.0 KB
ID:	1225079


    The first SpawnActor spawns the arm. The arm is in it's own blueprint, is animated, and it is set to destroys itself after 3 seconds.

    The second SpawnActor you see there is just the projectile that the player throws, though I have no issues with that.

    So is there a way to make it so that the arm moves along with the player's camera? Something to do with parenting? I'm kind of a newbie at this, by the way.
    Last edited by travisc; 07-09-2017, 04:56 AM.

    #2
    Nevermind, figured it out

    Comment

    Working...
    X