Just to clarify, I do not want to know how to make a variable display 2 values at the same time.
I want to know how this is happening in my project.
In the Level Blueprint I have a timer that every 5 seconds generates 2 warriors in different places. This in order to distinguish them. One is from the blue team and the other from the red team:
The team of each one I can define correctly, the problem happens with the whole variable.
The value of the blue warrior variable should be 5. The value of the red warrior variable should be 1.
I have a Text Render that displays the time and value of the variable I have quoted:
In the Event BeginPlay I have a loop that prints the value of this integer variable I have quoted:
Game picture:
Game picture:
How can one place show that the variable is 0 and in the other show that it is 1/5?
EDIT 1 (verification of some information)
Some time after posting this question, I wondered about the value of the warrior team being correct or not, and through an impression I noticed that there was also an error.
On printing right after the event I was able to confirm the error:
In game:
Default value of the string variable:
Default value of the integer variable:
From what I've noticed, I can not change the default value of the variables in the warrior generation. Even with the pin coming out of the spawn.