Announcement

Collapse
No announcement yet.

Get player location node?

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

    Get player location node?

    Is this the easiest/correct way to get and log player location in the game every second?

    Click image for larger version

Name:	GetPlayerLocation.jpg
Views:	1167
Size:	72.2 KB
ID:	1501061

    I'd like to make a visual image of where the players travel in the game ultimately, am wondering if I could just put all the X,Y coordinates in a logging program and let it plot a graph, is there an easier alternative?

    #2
    GetActorLocation would suffice and you may want to skip logging the location if the Character isn't moving.

    A performance tip is to use "Set timer by Event" instead of a delay on tick. Using Tick in Blueprints should be avoided whenever possible as it slows performance even if it isn't doing anything.

    When using timers you can also stop them and they won't be using any resources anymore.

    Comment


      #3
      Originally posted by GarnerP57 View Post
      GetActorLocation would suffice and you may want to skip logging the location if the Character isn't moving.

      A performance tip is to use "Set timer by Event" instead of a delay on tick. Using Tick in Blueprints should be avoided whenever possible as it slows performance even if it isn't doing anything.

      When using timers you can also stop them and they won't be using any resources anymore.
      How do you skip logging location if players not moving?

      Also how would you setup the timer to work as you mention, can you throw up a BP to explain?

      Comment


        #4
        Click image for larger version

Name:	PositionLogTimer.PNG
Views:	1037
Size:	172.3 KB
ID:	1501295

        Comment


          #5
          Originally posted by GarnerP57 View Post
          Click image for larger version

Name:	PositionLogTimer.PNG
Views:	1037
Size:	172.3 KB
ID:	1501295
          Ah ok thankyou for that

          Comment

          Working...
          X