I’m just starting with ue4, and i’ve made some cubes that can be destroyed, in the blueprint i have a bool that says if the cube is “alive” or not. What i would like to do is make a score system that counts how many cubes i have destroyed, seeing if the bool says its alive or not, what i dont know how to do is with a different blueprint get that bool.
Hello Grandmurderer2,
You can create a reference to another actor and use that to check if whatever value you want to. In the example below:
- OtherActor is of Variable Type Actor.
- The IsValid node ensures that the variable has a value.
- Since the value stored in OtherActor is of type ActorA you need to cast to it (essentially check if it is the correct type).
How you choose to assign OtherActor is up to you, but if you want it to editable in Editor make sure Instance Editable (in OtherActor) to true.
From,
How do i change as actor A from target in blue to the alive in red?