Error: Print Letter by Letter

My goal is to make text that prints letter by letter on screen. However, I’m getting the below error message when I attempt to run my blueprint:

Blueprint Runtime Error: “Attempted to access index 120 from array CallFunc_GetCharacterArrayFromString_ReturnValue of length 120!”. Node: Set Current Dialogue Text Graph: Dialogue Logic Function: Dialogue Logic Blueprint: HUD_Dialogue

For reference, I’ve been following this video guide. I’ve triple checked that our setup works, so I’m a bit perplexed why I’m encountering this issue.

Many thanks.

image

It should be Greater and not GreaterEqual if am not wrong.
If started at index=0, A phrase of 5 letters give len=5, but when reaching index 5, it will try to get the letter index at 5 which doesnt exist which is the 6th letter.

2 Likes

Nailed it - thank you :slight_smile:

Unsure why the video didn’t show the same error for them, but glad this is all working now.

Thanks for the explanation, too. Will keep this in mind hereon.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.