# Creating a variable for a spawing player..?

**URL:** <https://forums.unrealengine.com/t/creating-a-variable-for-a-spawing-player/303461>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [January 9, 2015, 1:32pm UTC](https://forums.unrealengine.com/t/creating-a-variable-for-a-spawing-player/303461 "2015-01-09T13:32:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_e70bc448](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e70bc448](https://forums.unrealengine.com/u/anonymous_user_e70bc448)\
**Post date:** [January 9, 2015, 1:32pm UTC](https://forums.unrealengine.com/t/creating-a-variable-for-a-spawing-player/303461/1 "2015-01-09T13:32:06Z")

</div>

Greetings. Up until own I’ve been using the [Direct Blueprint Communications](https://docs.unrealengine.com/latest/INT/Engine/Blueprints/UserGuide/BlueprintComms/index.html) tutorial to reference objects and variables from other blueprints. However I’ve kind of run up against a brick was when it comes to referencing the player character who is yet to spawn, as I can’t specify the instance shown in the tutorial.

I’ve also went through the tutorial [How to Reference Actors in Blueprints](https://docs.unrealengine.com/latest/INT/Gameplay/HowTo/ReferenceAssets/Blueprints/index.html) and it talks about using actors that don’t exist yet under “Cast To Referencing”, but this seems to be talking about sending information _from_ the new actor _to_ the player character, instead of the other way around. I tried doing it this way and I run into the same problem of having to specify an instance.

So basically is there anyway I can make it so as soon as the player spawns that instance is automatically set as the instance of a variable?
