So I was following Tesla’s tutorial on YT regarding drawing text to the HUD and I was wondering how I could do this with multiple box triggers each with their own individual messages?
It’s probably a really, really dead simple answer I just don’t know what it is. In my case I have doors in my level, one which animates and is ‘stuck’ and displays the error message I defined on the user’s HUD. I want to display another message on-screen when the player enters my other box triggers I have placed in my level.
Create a WidgetBp , inside of it create a TextBlock (in my exemple i named it MyTextBlock)
and after you add it to viewport you can change it text as you want
Hello,
Maybe can you create an array of texts and use the index as reference with an int variable in your triggers. 0 : need a key 1 : door is stuck 2 : you need a code too and others. You set the initial value in event begin play in level blueprint and set it to new value each an event make status change ?
First of thanks for the replies. Like I said, I’m a bit of a noob when it comes to blueprint so I’m not quite sure how to use arrays. I’ve seen other videos of people using them but I’m not sure how I’d go about setting one up for mine. Any starters on node placement and what to hook up and where?