I’ve been searching the Internet and trialing things for hours and I’m getting fed up now! I am building an idle state random dialogue system for an NPC. I’d like to be able to debug as I go but I cannot figure out how to set it up so I can press various keys to print variables from the NPC BP.
Obviously setting up a simple key press Print of a variable in the NPC’s BP doesn’t return any results as when I play the game, I’m not the NPC when pressing the required key… help!
Open the NPC blueprint and create a CustomEvent, make it Print the variable you want.
When you approach the NPC in game, get its reference (by clicking/collision - a method of choice - however you select which NPC to interact with) and trigger the CustomEvent.