Send Message To Specific Blueprint?
So I have a graffiti system that I need help with, when the player collides with the graffiti blueprint it sends a message back to the player which triggers a boolean, I did this because I didn't want to cast multiple times for different characters.
Once a key is pressed with this boolean on it then sends a message back revealing the graffiti one by one.
My problem is the message is being read by all of the graffiti on the level so no matter which one you collide with and spray on it ends up revealing all of them eventually
I would like to know how I could trigger this with sending specific messages to the colliding blueprint/doing this a better way since I'm not really sure how I would go about doing this
asked Feb 03 '19 at 11:18 PM in Blueprint Scripting
is it just your player that can trigger the graffiti? if thats the case then you could simply use a gate to control the script flow and instead of casting to identify you just use a other actor equal (==) to player character.
or another less precise solution would be to use classes higher in the hierarchy for your casts. for example cast to character instead of a specific class.
butt to answer your question specifically to send a message to a actor directly you will need a reference to that actor instance. you can get the reference via overlap events, traces, etc.
Follow this question
Once you sign in you will be able to subscribe for any updates here