Trigger isn't spawning a room.

Hi, I’m making a game similar to doors.
There are no tutorials for this on unreal engine 5, so I’m using a dungeon generator tutorial. I’ll use the version he made to create mini dungeons on the side, but I am making a separate version that spawns rooms after the character open a door. I’m losing my marbles because it isn’t just spawning a room after the player character hits a trigger.



How can I fix the cast failing?

Confusing and not enough info.


  • what did this actor overlap with?
  • you’re asking the engine to treat the overlapping actor as if it was the Dungeon Generation itself - is this intended?
  • did you mean to cast to the player since it’s them who opens the door and overlaps?
  • or is the Dungeon Generation the player?

Ah sorry my bad. I’m VERY new to this.
Also I kind of started figuring out that the engine is getting confused since the player itself isn’t the thing that holds the room generation.
The door trigger part is overlapping with the player.
No, I’m not asking the engine to treat the overlapping actor as if it was the dungeon generation itself.

The Dungeon Generation is not the player.
I was trying to figure out how to make opening a door start another event, which is the room spawning mechanism.
It was casting to the player, which can’t spawn rooms.

Sorry about the lack of info.
Oh and thank you.

Can you put the code for the room generation, also it seems like your casting the player character to a room generator class, correct? That could be failing. Maybe try spawning an actor of the room generator class instead.

Never mind, I fixed it by following a tutorial by DYLO Gaming on youtube.
Sorry for bothering you all.

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