Triggering an event from a collision box
I am trying to make a procedurally generated world where the next two rooms will spawn when the player enters the room leading to them. At the moment I am able to get them to spawn as many rooms as I want by placing a loop on the "Spawn Rooms" function, but that's not what I need.
At the center of the world is an actor called "Course Generator". This is used to spawn all the rooms. On "Event BeginPlay" it spawns the first room, then the second two leading off, as you can see below. After that, I want to move into the right room in-game through that door and have the next two rooms spawn.
I have tried varies things, but I can't get it to work from the collision box. I have tested the collision box is working and that the cast is working by having the player character explode while it goes through and that worked fine, but I can't get the rooms to spawn for some reason.
asked Sep 03 '16 at 10:44 PM in Blueprint Scripting
Follow this question
Once you sign in you will be able to subscribe for any updates here