Announcement

Collapse
No announcement yet.

3rd person weapon constraints

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

    3rd person weapon constraints

    What i want to do is shoot where the player is looking, but i dont want the player to be able to look 180 and shoot themselves. How can i add those constraints?
    Click image for larger version

Name:	projectilespawn.PNG
Views:	1
Size:	545.3 KB
ID:	1204812
    Click image for larger version

Name:	Character BP.PNG
Views:	1
Size:	113.2 KB
ID:	1204813

    #2
    you're using the camera to get your rotation [camera]-[GetWorldRotation] so it will fire in any direction the camera is looking

    try using get control rotation [GetControlRotation] - you seem to be using the component Sawn in your BP for an offset location so just changing that node should work

    video to help explain:
    https://wiki.unrealengine.com/Unreal...tom_Projectile

    hope this helped & gl

    Comment


      #3
      actually, how do i rotate my character with mouse x? sounded simple but i cant seem to figure it out

      Comment

      Working...
      X