I’m rather new to UE4’s blueprint scripting system. I’m trying to setup text that when event construct starts. It chooses from an array of text randomly once but when I play it, it constantly changes between the different choices in the array. The array has five strings on it incase anybody wants to know.
This is being done in the UMG Widget blueprint, so there is no Event Begin Play. I’m trying to figure out how to restrict to be used once and done type of thing
Every time this function is called, you it wil get a random member within the array. You need to check when you are calling this function… I would sugest using “event begin play” for this
Figured it out, forgot that you can bind the text to variables, and I kept using a function. What worked it below:
you can reference you UMG class in a class that is able to call the Event, maybe the character or a manager you are using?
You can also try the DoOnce node if its available in the BP you are edditing.
Also the Contruct event can also be used, this one is available in UMG classees if i’m correct.