# getting varible information from another blueprint?

**URL:** <https://forums.unrealengine.com/t/getting-varible-information-from-another-blueprint/308899>\
**Category:** Editor Scripting\
**Tags:** reference, variables-communicat, unreal-engine, question\
**Created:** [March 3, 2015, 12:15pm UTC](https://forums.unrealengine.com/t/getting-varible-information-from-another-blueprint/308899 "2015-03-03T12:15:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_37695c43](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_37695c43](https://forums.unrealengine.com/u/anonymous_user_37695c43)\
**Post date:** [March 3, 2015, 12:15pm UTC](https://forums.unrealengine.com/t/getting-varible-information-from-another-blueprint/308899/1 "2015-03-03T12:15:33Z")

</div>

Hello, I have a varible which is the player controller id which i would like to pass on to my level blue print and a few others. I have tried casting but find myself needing the id to cast to the correct player controller in order to get the player id, can anyone help me with this please?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_37695c43](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_37695c43](https://forums.unrealengine.com/u/anonymous_user_37695c43)\
**Post date:** [March 3, 2015, 12:16pm UTC](https://forums.unrealengine.com/t/getting-varible-information-from-another-blueprint/308899/2 "2015-03-03T12:16:39Z")

</div>

![31928-screenshot+2015-03-03+12.16.08.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/b/e/abeb0ab81b872555157571cf07d672d1f6740ccb.png)

---

<div class="post-metadata">

**Author:** ![Jurif](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jurif](https://forums.unrealengine.com/u/Jurif)\
**Post date:** [March 3, 2015, 12:22pm UTC](https://forums.unrealengine.com/t/getting-varible-information-from-another-blueprint/308899/3 "2015-03-03T12:22:34Z")

</div>

Well you could create a variable for player controller , when you do the cast you could set this variable.  
Now you have access to all the content of the casted object.  
Here’s an example of casting a GameModeBlueprint to a CharacterBlueprint or any other blueprint.

 ![31933-screenshot362.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/a/5/da5635d5d488d15ef559802a994b9e06b8b499ce.jpeg)

Then you can just drag - GET the new variable into the graph, and as you drag to link it you will get all the content of the object.

![31934-screenshot363.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/2/7/527cf442bb182f38fd9254738ac951dab0a3005f.jpeg)
