# \#variables-communicat

**URL:** https://forums.unrealengine.com/tag/variables-communicat/1853.md

[Latest](https://forums.unrealengine.com/latest.md) · [Categories](https://forums.unrealengine.com/categories.md) · [Tags](https://forums.unrealengine.com/tags.md)

---

## [Can you pass a variable to a Damage Type class during Apply Damage?](https://forums.unrealengine.com/t/can-you-pass-a-variable-to-a-damage-type-class-during-apply-damage/469241)

<div class="topic-metadata">

**Author:** [@Conor202](https://forums.unrealengine.com/u/Conor202)\
**Replies:** 6\
**Last updated:** [June 25, 2024, 3:35pm UTC](https://forums.unrealengine.com/t/can-you-pass-a-variable-to-a-damage-type-class-during-apply-damage/469241 "2024-06-25T15:35:04Z")

</div>

Is there any way to change the variables held inside a Damage Type class at runtime during the Apply Damage event or are they static? I was hoping to use one Damage Type Class containing a map of the various types of dam…

---

## [how to use variables from other class in ue5 c++?](https://forums.unrealengine.com/t/how-to-use-variables-from-other-class-in-ue5-c/1833805)

<div class="topic-metadata">

**Author:** [@Aberplex](https://forums.unrealengine.com/u/Aberplex)\
**Replies:** 3\
**Last updated:** [May 5, 2024, 6:17pm UTC](https://forums.unrealengine.com/t/how-to-use-variables-from-other-class-in-ue5-c/1833805 "2024-05-05T18:17:54Z")

</div>

I’m trying to access a variable in my partyinfo class from my menu class, but how? Here is my code. menu APlayerState\* PlayerState = Pawn-\>GetPlayerState(); APartyInfo\* PartyInfo; if (PlayerState) { if (PartyInfo) { …

---

## [BP Interface for passing variable between 2 blueprints](https://forums.unrealengine.com/t/bp-interface-for-passing-variable-between-2-blueprints/880878)

<div class="topic-metadata">

**Author:** [@cnapsys](https://forums.unrealengine.com/u/cnapsys)\
**Replies:** 7\
**Last updated:** [April 9, 2023, 7:08pm UTC](https://forums.unrealengine.com/t/bp-interface-for-passing-variable-between-2-blueprints/880878 "2023-04-09T19:08:40Z")

</div>

Need a bit more assistance tweaking some of my BPs. Here’s what I am trying to accomplish: When a bullet hits a target, the target is destroyed and spawns a nice explosion effect. all fine and dandy. However, I am try…

---

## [How do I get a variable from another Blueprint?](https://forums.unrealengine.com/t/how-do-i-get-a-variable-from-another-blueprint/469576)

<div class="topic-metadata">

**Author:** [@ItsRainingNans](https://forums.unrealengine.com/u/ItsRainingNans)\
**Replies:** 5\
**Last updated:** [August 11, 2020, 7:20pm UTC](https://forums.unrealengine.com/t/how-do-i-get-a-variable-from-another-blueprint/469576 "2020-08-11T19:20:45Z")

</div>

So I’m making a FNaF game (yeah yeah, cringe, I know) and I’m trying to make it so that when the enemy is outside the door, it will check if the door is closed, if its closed it will go inside but if its not then he will…

---

## [Get Variable from c++ actor to a Blueprintanimation](https://forums.unrealengine.com/t/get-variable-from-c-actor-to-a-blueprintanimation/468879)

<div class="topic-metadata">

**Author:** [@anon15805799](https://forums.unrealengine.com/u/anon15805799)\
**Replies:** 4\
**Last updated:** [July 31, 2020, 4:28pm UTC](https://forums.unrealengine.com/t/get-variable-from-c-actor-to-a-blueprintanimation/468879 "2020-07-31T16:28:56Z")

</div>

I have a problem to get a variable from a BP\_Character, that is inherit from a cpp\_Character, to the animationBlueprint. Its pretty easy but i get all times this errors and i cant create a c++ animation file in my knowle…

---

## [How to pass vector variables from character bp to animinstance bp?](https://forums.unrealengine.com/t/how-to-pass-vector-variables-from-character-bp-to-animinstance-bp/462252)

<div class="topic-metadata">

**Author:** [@LETTICONION](https://forums.unrealengine.com/u/LETTICONION)\
**Replies:** 1\
**Last updated:** [March 9, 2020, 10:11am UTC](https://forums.unrealengine.com/t/how-to-pass-vector-variables-from-character-bp-to-animinstance-bp/462252 "2020-03-09T10:11:16Z")

</div>

Ok I am trying to pass a vector variables from my character bp to animinstance bp. Upto now I have created the variables in the character bp and tried (for first time) get all actors node in animinstance but unable to pr…

---

## [I have public variables, but they arent aviable to set up on other blueprints](https://forums.unrealengine.com/t/i-have-public-variables-but-they-arent-aviable-to-set-up-on-other-blueprints/449407)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_3383c386](https://forums.unrealengine.com/u/anonymous_user_3383c386)\
**Replies:** 8\
**Last updated:** [May 23, 2019, 10:49am UTC](https://forums.unrealengine.com/t/i-have-public-variables-but-they-arent-aviable-to-set-up-on-other-blueprints/449407 "2019-05-23T10:49:18Z")

</div>

i have public variables, but they arent aviable to set up on other blueprints even they are casting correctly and compiled but thats happen with all blueprints and all variables from other blueprints

---

## [How create global variable?](https://forums.unrealengine.com/t/how-create-global-variable/286785)

<div class="topic-metadata">

**Author:** [@DcDenton](https://forums.unrealengine.com/u/DcDenton)\
**Replies:** 27\
**Last updated:** [December 19, 2018, 7:17am UTC](https://forums.unrealengine.com/t/how-create-global-variable/286785 "2018-12-19T07:17:57Z")

</div>

Hi. How can I create variable whom I can edit from differents blueprints, and then using her in another blueprints?

---

## [How to access variable from other actor with same blueprint?](https://forums.unrealengine.com/t/how-to-access-variable-from-other-actor-with-same-blueprint/427385)

<div class="topic-metadata">

**Author:** [@h4sh21](https://forums.unrealengine.com/u/h4sh21)\
**Replies:** 1\
**Last updated:** [June 14, 2018, 7:27pm UTC](https://forums.unrealengine.com/t/how-to-access-variable-from-other-actor-with-same-blueprint/427385 "2018-06-14T19:27:31Z")

</div>

I have 2 actors from same Character blueprint. First one is controlled by player. After second actor is shot i need to access his health value to change it Im confused because they have same blueprint but they are dif…

---

## [Can't communicate with widget component](https://forums.unrealengine.com/t/cant-communicate-with-widget-component/306852)

<div class="topic-metadata">

**Author:** [@Measuring](https://forums.unrealengine.com/u/Measuring)\
**Replies:** 3\
**Last updated:** [May 12, 2018, 3:34am UTC](https://forums.unrealengine.com/t/cant-communicate-with-widget-component/306852 "2018-05-12T03:34:48Z")

</div>

Hello! I am experiencing problems when trying to create a inventory system with UMG. I’m trying to put the widget as a component in my player character blueprint. The reason why I don’t just add it to viewport is becaus…

---

## [Making a variable accesible to other blueprints](https://forums.unrealengine.com/t/making-a-variable-accesible-to-other-blueprints/402399)

<div class="topic-metadata">

**Author:** [@ekarasakal](https://forums.unrealengine.com/u/ekarasakal)\
**Replies:** 3\
**Last updated:** [August 21, 2017, 11:45am UTC](https://forums.unrealengine.com/t/making-a-variable-accesible-to-other-blueprints/402399 "2017-08-21T11:45:45Z")

</div>

Hello Unreal Community this is my very first post. My question is: I am planning to make a side scroller 3d shoot em up game. I want to be able to limit my spacefighter Up/Down movement relative to my fixed cams frustum…

---

## [How to get variables from Tagged Actor](https://forums.unrealengine.com/t/how-to-get-variables-from-tagged-actor/391823)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_a4e95069](https://forums.unrealengine.com/u/anonymous_user_a4e95069)\
**Replies:** 5\
**Last updated:** [April 26, 2017, 1:34am UTC](https://forums.unrealengine.com/t/how-to-get-variables-from-tagged-actor/391823 "2017-04-26T01:34:35Z")

</div>

So basically in my game, there is going to be a lot of different monsters, and a lot of different bullet projectiles coming at the player. I want to check if the actor that hit the player has the projectile tag, and then…

---

## [Variable Values for C++ and Blueprint](https://forums.unrealengine.com/t/variable-values-for-c-and-blueprint/389490)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_2b086c581](https://forums.unrealengine.com/u/anonymous_user_2b086c581)\
**Replies:** 2\
**Last updated:** [March 30, 2017, 3:44pm UTC](https://forums.unrealengine.com/t/variable-values-for-c-and-blueprint/389490 "2017-03-30T15:44:36Z")

</div>

I understand the order of event for the game is C++ Constructor → BP Constructor then C++ BeginPlay() → BP BeginPlay(). Currently, I have variables in C++ which are marked EditDefaultsOnly and exposed to BP. If I set th…

---

## [Variable/Blueprint Issues](https://forums.unrealengine.com/t/variable-blueprint-issues/377289)

<div class="topic-metadata">

**Author:** [@Ironsoul27](https://forums.unrealengine.com/u/Ironsoul27)\
**Replies:** 3\
**Last updated:** [December 3, 2016, 12:58pm UTC](https://forums.unrealengine.com/t/variable-blueprint-issues/377289 "2016-12-03T12:58:33Z")

</div>

Hey all, So I intend to implement a blueprint system so that when the character collects the keys strewn around the map the monster becomes faster by a set amount. So far all my attempts have failed and I’m really stuck…

---

## [How to set variable in PlayerController from UserWidget?](https://forums.unrealengine.com/t/how-to-set-variable-in-playercontroller-from-userwidget/368751)

<div class="topic-metadata">

**Author:** [@Rusbaron](https://forums.unrealengine.com/u/Rusbaron)\
**Replies:** 2\
**Last updated:** [August 31, 2016, 7:22am UTC](https://forums.unrealengine.com/t/how-to-set-variable-in-playercontroller-from-userwidget/368751 "2016-08-31T07:22:09Z")

</div>

I’m making analog of PvZ game, and now i’m stuck at making working for user interface. So i have a button (User Widget) And after pressing button i want to change variable in Player Controller, where i will compute c…

---

## [How do I change projectile properties when it collide with pickup items?](https://forums.unrealengine.com/t/how-do-i-change-projectile-properties-when-it-collide-with-pickup-items/357879)

<div class="topic-metadata">

**Author:** [@Leo\_Lindoso](https://forums.unrealengine.com/u/Leo_Lindoso)\
**Replies:** 0\
**Last updated:** [May 19, 2016, 3:20am UTC](https://forums.unrealengine.com/t/how-do-i-change-projectile-properties-when-it-collide-with-pickup-items/357879 "2016-05-19T03:20:00Z")

</div>

Well, I’m a beginner at UE4 and creating a game prototype where the player will be able to change the projectile when it collide with certain pickup items. But I can’t find a way to do that. I’ve tried to do it with some…

---

## [Float variable not updating \[leap input\]](https://forums.unrealengine.com/t/float-variable-not-updating-leap-input/348552)

<div class="topic-metadata">

**Author:** [@fredericopimpao](https://forums.unrealengine.com/u/fredericopimpao)\
**Replies:** 1\
**Last updated:** [February 25, 2016, 7:12pm UTC](https://forums.unrealengine.com/t/float-variable-not-updating-leap-input/348552 "2016-02-25T19:12:16Z")

</div>

Hello. I am a noob EU4, and I’m having a problem that seems to be quite simple to solve. My goal is to send a float value of a blueprint to another. When I put the random value as an input of the variable, the variable …

---

## [How to make an int variable, work in a different blueprint?](https://forums.unrealengine.com/t/how-to-make-an-int-variable-work-in-a-different-blueprint/333312)

<div class="topic-metadata">

**Author:** [@anon35804172](https://forums.unrealengine.com/u/anon35804172)\
**Replies:** 6\
**Last updated:** [September 26, 2015, 6:54pm UTC](https://forums.unrealengine.com/t/how-to-make-an-int-variable-work-in-a-different-blueprint/333312 "2015-09-26T18:54:30Z")

</div>

Hi, I am heaving a problem with how to make a int variable of one blueprint, ‘‘talk’’ to another. This is the situation: I have one blueprint that have 3 collision boxes. What i wanna to do is, when i click at the fir…

---

## [Communication of variables between classes?](https://forums.unrealengine.com/t/communication-of-variables-between-classes/326642)

<div class="topic-metadata">

**Author:** [@SirKevinicus\_1](https://forums.unrealengine.com/u/SirKevinicus_1)\
**Replies:** 5\
**Last updated:** [July 27, 2015, 7:21pm UTC](https://forums.unrealengine.com/t/communication-of-variables-between-classes/326642 "2015-07-27T19:21:05Z")

</div>

I’m currently trying to make an options menu for my game. There needs to be a toggle so that the user can invert the Mouse Y while they are playing. I have a variable called ReverseLookUp that controls this and is stored…

---

## [How to tell the server who I am as a player?](https://forums.unrealengine.com/t/how-to-tell-the-server-who-i-am-as-a-player/308594)

<div class="topic-metadata">

**Author:** [@DoctorPC\_1](https://forums.unrealengine.com/u/DoctorPC_1)\
**Replies:** 3\
**Last updated:** [June 11, 2015, 1:17pm UTC](https://forums.unrealengine.com/t/how-to-tell-the-server-who-i-am-as-a-player/308594 "2015-06-11T13:17:58Z")

</div>

Hi! I am trying to figure out, how to communicate with the server in a such a manner, that I could pass out a variable of some sort, using which server can spawn a pawn, and tell it to be possessed by that variable. My …

---

## [How can I pass variables from Widget BP to Other BP (e.g. Lvl-BP)?](https://forums.unrealengine.com/t/how-can-i-pass-variables-from-widget-bp-to-other-bp-e-g-lvl-bp/317635)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_cf30f276](https://forums.unrealengine.com/u/anonymous_user_cf30f276)\
**Replies:** 0\
**Last updated:** [May 6, 2015, 12:45pm UTC](https://forums.unrealengine.com/t/how-can-i-pass-variables-from-widget-bp-to-other-bp-e-g-lvl-bp/317635 "2015-05-06T12:45:54Z")

</div>

Hello folks! I don’t want to sound desperate, but probably I am at the moment. For a little Project I want the player to be able to change some of the game-settings InGame. Therefore I created a little UserInterface u…

---

## [getting varible information from another blueprint?](https://forums.unrealengine.com/t/getting-varible-information-from-another-blueprint/308899)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_37695c43](https://forums.unrealengine.com/u/anonymous_user_37695c43)\
**Replies:** 2\
**Last updated:** [March 3, 2015, 12:22pm UTC](https://forums.unrealengine.com/t/getting-varible-information-from-another-blueprint/308899 "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 t…

---

## [Referencing Level Blueprint Variables prevents saving?](https://forums.unrealengine.com/t/referencing-level-blueprint-variables-prevents-saving/302973)

<div class="topic-metadata">

**Author:** [@Whitehawk\_1](https://forums.unrealengine.com/u/Whitehawk_1)\
**Replies:** 1\
**Last updated:** [January 4, 2015, 8:19pm UTC](https://forums.unrealengine.com/t/referencing-level-blueprint-variables-prevents-saving/302973 "2015-01-04T20:19:34Z")

</div>

Hello Staff, I’ve run into a roadblock and would love your advice. I have created some variables in the Level Blueprint I need to access these Level Blueprint variables from within the MyCharacter Blueprint As you can…

---

## [Blueprint comunication with other maps?](https://forums.unrealengine.com/t/blueprint-comunication-with-other-maps/285286)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_0599cf61](https://forums.unrealengine.com/u/anonymous_user_0599cf61)\
**Replies:** 5\
**Last updated:** [June 11, 2014, 3:25am UTC](https://forums.unrealengine.com/t/blueprint-comunication-with-other-maps/285286 "2014-06-11T03:25:16Z")

</div>

Let’s say my game will have multiple maps…and I will change to one to another using the OPEN LEVEL node…and I have a INT variable “MyMoney” I want to pass to that maps to simulate how much money the player have…how much…

---

## [Getting variable from another blueprint when spawned actor is clicked](https://forums.unrealengine.com/t/getting-variable-from-another-blueprint-when-spawned-actor-is-clicked/285045)

<div class="topic-metadata">

**Author:** [@rckt26](https://forums.unrealengine.com/u/rckt26)\
**Replies:** 5\
**Last updated:** [June 6, 2014, 1:15am UTC](https://forums.unrealengine.com/t/getting-variable-from-another-blueprint-when-spawned-actor-is-clicked/285045 "2014-06-06T01:15:30Z")

</div>

I’m just a beginner and I’ve looked at all the various ways of communicating between blueprints but I can not get anything to work. There has to be something obvious that I’m missing. I spawn the actor multiple times i…

---

## [How to read/write variable of HUD class from Level blueprint?](https://forums.unrealengine.com/t/how-to-read-write-variable-of-hud-class-from-level-blueprint/284341)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_2f116e5b](https://forums.unrealengine.com/u/anonymous_user_2f116e5b)\
**Replies:** 2\
**Last updated:** [May 29, 2014, 9:33am UTC](https://forums.unrealengine.com/t/how-to-read-write-variable-of-hud-class-from-level-blueprint/284341 "2014-05-29T09:33:30Z")

</div>

Gone through : https://docs.unrealengine.com/latest/INT/Engine/Blueprints/UserGuide/BlueprintComms/index.html Created ‘CurrentScore’ variable (public) in HUD class to draw text on screen Created object variable in l…

---

## [Matinee controlling a camera blueprint variable problem](https://forums.unrealengine.com/t/matinee-controlling-a-camera-blueprint-variable-problem/284490)

<div class="topic-metadata">

**Author:** [@RinDreamX](https://forums.unrealengine.com/u/RinDreamX)\
**Replies:** 1\
**Last updated:** [May 29, 2014, 5:59am UTC](https://forums.unrealengine.com/t/matinee-controlling-a-camera-blueprint-variable-problem/284490 "2014-05-29T05:59:11Z")

</div>

I have a math formula controlling the FOV of a camera based on a variable in a Blueprint based on Camera Actor. I did this all in construct script and exposed the variable to matinee. When I slide around the value in t…

---

## [Communicating Between Blueprints](https://forums.unrealengine.com/t/communicating-between-blueprints/279963)

<div class="topic-metadata">

**Author:** [@Moggeh2k\_1](https://forums.unrealengine.com/u/Moggeh2k_1)\
**Replies:** 1\
**Last updated:** [April 8, 2014, 12:45pm UTC](https://forums.unrealengine.com/t/communicating-between-blueprints/279963 "2014-04-08T12:45:09Z")

</div>

Hi there! I am trying to communicate between two object based blueprints Without using the level blueprint.I herd this can be done by using the Blueprint Interface but i cannot find any tutorials for how to communicate b…
