http://puu.sh/d8WWx/b79236cd6f.png
http://puu.sh/d8WYl/6f7a2fcde4.png
http://puu.sh/da1UV/0d0902a08f.png
I’m trying to make a simple AI that when player walks through a trigger box gets told to charge towards player. Only problem is that it doesn’t seem to be set to true, looking in debug it seems that “set” node goes through but other blueprint can’t see that. Am I doing something wrong?
Hi sgtfluffybutt,
In your box BP, how are you setting value of Can Charge? Is trigger volume part of that BP, or another? If it’s in another BP, you’ll need to cast to that BP to get value of Can Charge, and then use that inside box BP. If you’re only creating a new variable in box BP, it won’t explicitly recognize any changes made to a variable of same name in a different BP.
You can read more about Blueprint communication here:
https://docs.unrealengine.com/latest/INT/Engine/Blueprints/UserGuide/BlueprintComms/index.html
and casting here:
https://docs.unrealengine.com/latest/INT/Engine/Blueprints/UserGuide/CastNodes/index.html
Hope that helps! Let me know if you need help setting this up.
You can check Blueprint Communication Procedure here unrealenginetutorials.com