# How to get player position in a racing game?

**URL:** <https://forums.unrealengine.com/t/how-to-get-player-position-in-a-racing-game/387755>\
**Category:** Community & Industry Discussion\
**Tags:** racing, car, unreal-engine, question\
**Created:** [March 13, 2017, 3:59am UTC](https://forums.unrealengine.com/t/how-to-get-player-position-in-a-racing-game/387755 "2017-03-13T03:59:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![KeenMathura](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KeenMathura](https://forums.unrealengine.com/u/KeenMathura)\
**Post date:** [March 13, 2017, 3:59am UTC](https://forums.unrealengine.com/t/how-to-get-player-position-in-a-racing-game/387755/1 "2017-03-13T03:59:22Z")

</div>

Hi all, i am currently making a racing game utilizing the advanced vehicle blueprint and the the time attack unreal engine tutorial. I have not set up ai yet, but before i do that, i am trying to figure out how i could track and display the vehicle position (1st place, 2nd place, 3rd place, etc). Does anyone how i could achieve this or is there a tutorial to get myself started?

Any/all help is greatly appreciated

---

<div class="post-metadata">

**Author:** ![Erytriel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Erytriel](https://forums.unrealengine.com/u/Erytriel)\
**Post date:** [March 13, 2017, 11:35am UTC](https://forums.unrealengine.com/t/how-to-get-player-position-in-a-racing-game/387755/2 "2017-03-13T11:35:17Z")

</div>

use checkpoints along ur driveway so you keep the cars on track , then you could do

A) add a timer and compare the cars  
car A checkpoint 4, car B checkpoint 3 = A is in front of b

or

B) most of the time ur cars are on a straight line so you could take the distance between the cars on the way to the same checkpoint - is A closer to the CP then B … A is 1st

and for the tracking itself you simply take an get actor location node and pin it either to a tick node or a squence with delay (same effect as tick)

and if you need the rank at the end u could make a verify if you drove through all CP’s and get the time since start ^^

---

<div class="post-metadata">

**Author:** ![KeenMathura](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KeenMathura](https://forums.unrealengine.com/u/KeenMathura)\
**Post date:** [March 13, 2017, 5:18pm UTC](https://forums.unrealengine.com/t/how-to-get-player-position-in-a-racing-game/387755/3 "2017-03-13T17:18:48Z")

</div>

I’ll try this out, thank you so much for the reply!
