Hey Unreal Forums! So I’m working on an Ant Simulator with Leafcutter ants and I was trying to make it so once an Ant Picks up a leaf, the ant gains one point. The ant needs 100 points in order to level up and progress. But I’m trying to be able to get/set the “Pick-Up Leaf” Variable and drop it in the Leaf (Picked up by ant) blueprint. Then I’m setting it so When the player gets the leaf it adds one point to the progress bar on the hud. I’ve got most of the stuff down, just having trouble relocating variables and wondering if there’s a better way to do it or even better, a solution to my problem. Thanks in advance.
To access variables created in the Character BP from the level BP you can do a cast to your character:
It gave me this. I’m sure that’s the actual Blueprint for the character. I also have to put a target for the SET node.
Here’s the compile error. Sorry for not already knowing most of this stuff. I’m taking classes right now on learning Unreal Engine 4.
That error says exactly what the problem is.
Okay, so I have it set up and it’s no longer giving me errors, but it’s still not showing anything on the progress bar in the HUD I have in-Game.
Nevermind! I’ve got it. Thanks a bunch!