So I have an Actor blueprint set up with a basic inspection system. This blueprint is used for notes found around in my game. Whenever you interact with the note it creates a widget that displays what the note says and allows you to use the mouse to click on an icon to close out of it.
What i'm trying to create is that a certain note that you pick up will do something different when you try to close out of the widget menu. I'm trying to cast from My note BP to my Examine widget. I would say my skill level is intermediate when it comes to blueprint scripting. I know that when casting you are talking to the MAIN BP not a specific one, so i'm having trouble on how to tell the engine what BP i'm talking about exactly. I could use the Get All Actors Of Class node but i know its a slow operation and i'm trying to avoid that since there are many notes in my level.
I'm stuck on how i can plug in the BP i want to talk to in the object pin.
asked May 10 '18 at 02:14 PM in Blueprint Scripting
Hi there. Are the all the notes spawned on BeginPlay? If so you could do a Get All Actors of Class when you spawn the Player Character - yes it can be an expensive operation but you'd only do it once and then store all the returned actors in an array variable you can then use cheaply.
answered May 10 '18 at 03:47 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here