# How can I use a command line argument to set a variable in Blueprint?

**URL:** <https://forums.unrealengine.com/t/how-can-i-use-a-command-line-argument-to-set-a-variable-in-blueprint/287309>\
**Category:** Blueprint\
**Tags:** command-line-argumen, unreal-engine, Blueprint, question\
**Created:** [July 3, 2014, 11:21am UTC](https://forums.unrealengine.com/t/how-can-i-use-a-command-line-argument-to-set-a-variable-in-blueprint/287309 "2014-07-03T11:21:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_71e9fdf6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_71e9fdf6](https://forums.unrealengine.com/u/anonymous_user_71e9fdf6)\
**Post date:** [July 3, 2014, 11:21am UTC](https://forums.unrealengine.com/t/how-can-i-use-a-command-line-argument-to-set-a-variable-in-blueprint/287309/1 "2014-07-03T11:21:08Z")

</div>



---

<div class="post-metadata">

**Author:** ![anonymous\_user\_71e9fdf6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_71e9fdf6](https://forums.unrealengine.com/u/anonymous_user_71e9fdf6)\
**Post date:** [July 3, 2014, 11:26am UTC](https://forums.unrealengine.com/t/how-can-i-use-a-command-line-argument-to-set-a-variable-in-blueprint/287309/2 "2014-07-03T11:26:16Z")

</div>

I know my character name before I start my game, and I want to populate this variable in blueprint by passing it in on the command line:

mygame.exe ?charactername=Bob

Then in blueprint I want to capture ‘Bob’ and use it to set my character name variable so that a text render shows the name ‘Bob’ over the player when that player spawns in the level.

---

<div class="post-metadata">

**Author:** ![ioFlow\_Studios](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ioflow_studios/32/1194555_2.png) [@ioFlow\_Studios](https://forums.unrealengine.com/u/ioFlow_Studios)\
**Post date:** [October 26, 2014, 11:55am UTC](https://forums.unrealengine.com/t/how-can-i-use-a-command-line-argument-to-set-a-variable-in-blueprint/287309/3 "2014-10-26T11:55:51Z")

</div>

I’d like to know this too please.
