# Load player location always return 0.0.0

**URL:** <https://forums.unrealengine.com/t/load-player-location-always-return-0-0-0/348856>\
**Category:** Editor Scripting\
**Tags:** savegame, load-game, Structure, teleport, unreal-engine, Blueprint, question\
**Created:** [February 27, 2016, 12:38pm UTC](https://forums.unrealengine.com/t/load-player-location-always-return-0-0-0/348856 "2016-02-27T12:38:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_0e3d41b3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0e3d41b3](https://forums.unrealengine.com/u/anonymous_user_0e3d41b3)\
**Post date:** [February 27, 2016, 12:38pm UTC](https://forums.unrealengine.com/t/load-player-location-always-return-0-0-0/348856/1 "2016-02-27T12:38:32Z")

</div>

Im trying to save/load my game, and I used a struct to save all my variables.

My players location is saved by getting player pawn, get actor transform, then set a var stored in gamemode.

When I load, I get the transform and use it to teleport my character, but it goes to the center of the world.

Any suggestions why this happens? Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Est\_engine](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/est_engine/32/1008648_2.png) [@Est\_engine](https://forums.unrealengine.com/u/Est_engine)\
**Post date:** [February 27, 2016, 11:21pm UTC](https://forums.unrealengine.com/t/load-player-location-always-return-0-0-0/348856/2 "2016-02-27T23:21:18Z")

</div>

Hi man , i think that gamemode get reset at every change of level or anything…  
You have save your variables on a file on hardisk using the saveslot or maybe to use persistent gameinstance.

Try this test, in your game mode change the default value of the variable that should store the location.  
I am sure that will Always be the exact place where you get teleported,  
Because gamemode get reset .

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0e3d41b3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0e3d41b3](https://forums.unrealengine.com/u/anonymous_user_0e3d41b3)\
**Post date:** [February 28, 2016, 1:04pm UTC](https://forums.unrealengine.com/t/load-player-location-always-return-0-0-0/348856/3 "2016-02-28T13:04:37Z")

</div>

Many thanks, will try this. Does the character get reset as well?
