No announcement yet.

Lock- on in the character blueprint

  • Filter
  • Time
  • Show
Clear All
new posts

    Lock- on in the character blueprint

    Okay so I've place a variable within the PlayerState That determines teams, and in game mode it assigns a team to each person that joins via OnPostLogin with a flip/flop node:
    Click image for larger version

Name:	UE4Editor_4u54tvf3Dm.png
Views:	278
Size:	133.0 KB
ID:	1641987
    Then in the character blueprint I'm trying to access the array of connected players and if someone on the other team is found, create a variable to keep track of their location.Click image for larger version

Name:	UE4Editor_sD0DkjlhV2.png
Views:	111
Size:	121.8 KB
ID:	1641988
    At the moment both player's lock onto what I assume is the world origin, the camera updates just fine and rotates smoothly while focusing on a single point but I just can't seem to get it to focus on the players. I've been at this for almost 3 months now with no luck, if anyone could explain what I keep overlooking I'd be ever-grateful.