thyzro
(thyzro)
November 26, 2017, 7:01pm
1
Hello
I am having problems with my dialogue system. I used a documentation to make this. A new, community-hosted Unreal Engine Wiki - Announcements and Releases - Unreal Engine Forums
No I am getting these weird errors, and I am not experienced enough to know what I did wrong.
In the picture that I added as an attachment you can see the errors and the blueprint in which the errors occur.
If you have any questions, ask and I will reply as soon as possible.
Thank you!
Kontur
(Kontur)
November 26, 2017, 9:42pm
2
You are trying to cast a TextRenderActor type to an NPC_Dialogue type, which as the error suggests will always fail.
What is the parent class of NPC_Dialogue? The cast will only be successful if it inherits from TextRenderActor.
This page does a pretty good job explaining how casting works in Blueprints which will lead you to the correct solution:
thyzro
(thyzro)
November 27, 2017, 9:18pm
3
The parent class of NPC_Dialogue is Actor.
How do I get it to inherit the TextRenderActor, and what do I put into the “get all actors from class” note?
I have read the documentation that you added, but it did not make me any wiser on how to solve this problem.
thyzro
(thyzro)
December 1, 2017, 8:53pm
4
Anybody knows what to do?
thyzro
(thyzro)
December 30, 2017, 2:27pm
5
I still havo no idea how or what to do. If you are reading this, can you help?