I want send custom message with variable and origin actor acquire to another acquired actor, or just variable also useful
I’m talking about direct, communication from one actor to another without going through world variables
You can just use blueprint direct communication
Or, a slightly more elegant way, is with blueprint interfaces
is anyone else?
I need a way to send custom messages and variables from Aactor to Bactor when Aactor is a sure one, and Bactor needs to acquire now , in this case
Hey @corel_kri001!
Casting or Interfaces should be exactly what you are looking for based on what you have stated above. If this is not what you need, we are going to need more specifics on exactly what you need and your end goal.
Any additional specifics or information you provide will go a long way in solving your problem.
No, the Bactor is not a sure actor, many actors can be Bactor, it should be acquired, not be get with a class or something
for example, a unit killed an enemy and get XP, we need to know whats the type of unit be killed to give 【XP of this type unit be killed】 to the killer
In this process, Bactor is not a sure unit, I need a way to send information and variable in this case, and for optimization reasons, it’s better not to create additional global variables, which consume too much computational power to find and read/write them over and over again
Hey @corel_kri001,
So then what you want is an interface. For example, an interface will let you call a function that will send required information to your main actor / blueprint, no matter what the secondary actor that is interacting is. Some examples include interacting with objects, opening doors, collecting powerups, and sending xp / money to characters for killing an enemy or quest rewards.
You will not need to create “global variables” in order to accomplish this and will be able to send whatever type of data you need based on what you are doing.
Here are some more non-Epic affiliated tutorials that demonstrates the versatility you are asking for:
We need direct specifics on why this will not work for you if this will not work with your setup, however, this will allow you to communicate between your blueprints with as little extra variables and let you contain your necessary data in your respective blueprints without needing to add any bloat.
Hey @corel_kri001!
Checking in! Was the above the solution you were looking for? Are you still having trouble with blueprint communication?
I’m checking it out! If it solves the problem, I would greatly appreciate it!
Hey @corel_kri001!
Were you able to get this working? Were you still having difficulty with your goal?
YES! It solved my problem and run perfectly! Have a good day mate!
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.