"Object" Pin when Casting to Actor

So, I have been using this Endless Runner Tutorial, only I am using an actor called “Blueprint_CourseSpawner” instead of the game mode to hold the script that spawns the course. The only problem is, in the lesson he plugs “Get Game Mode” into the casting node. That obviously won’t work for me. What should I do instead?

I had the link start the video where he does this step of the tutorial.

Hi there, deleted my previous answer, because i failed at understanding.

You are confusing the GameMode cast with your Blueprint_CourseSpawner cast.
You will have 3 Casts-Nodes other than in the tutorial.

So just create the GetGameMode node and drag the cast node as shown in the video. And put this node before your Blueprint_CourseSpawner cast node. And you should be good to go :slight_smile:

hope that helps :slight_smile: Marooney

Ok, I see, you are actually struggling to get your CourseSpawner.
Is your CourseSpawner an Actor within the level? So I can provide you with an sample how to access it, if this is not covered by the tutorial.

The Course Spawner is a blueprint I set up as an actor and placed in the world at 0,0,0. Other than that my steps were identical to the video.

I also tested the solution in the first answer, but it didn’t change anything.

Ok so here we go:
At first you need to create the a Variable for your CourseSpawner in your GameMode like this:

Then you need to tell the GameMode about the CourseSpawner you have placed in the level. The LevelBlueprint is the only place for now, who knows about that Actor, so here we go:

So now your GameMode knows about your CourseSpawner as well, you can finally access your Actor within the Placeholder_CourseTile_… Blueprint :slight_smile: Just make sure to cast to your GameMode and not to your CourseSpawner.

You should be good to go now :slight_smile:

hope that helps :slight_smile: Marooney

It’s working! Thanks a bunch. ^u^