Hey everyone! I am working on a blueprint where I am wanting to spawn an array of Blueprint actors along a Spline path. Similar to how you can spawn Static Meshes along a Spline path. However, I am having issues with getting my actors to spawn along that Spline path/appear in the Game World. Below are screenshots of my current Blueprint setup along with the BP actor to spawn and the current output when running the game.
Context around my variables:
SplinePath is a component. SplineActorClass is a variant type of Actor Class Reference. NumberOfActors is an Integer with its default value set to 1.
More context around my overall project and goal:
I am wanting to ultimately spawn an array of tiles/spaces for a 3D board game…game where each tile is functional with variables and states aka a blueprint actor and not a static mesh.
Here’s an overview of the blueprint logic:
- Event Begin Play triggers on game start
- For Loop iterates from 0 up to Number of Actors
- Get Spline Length obtains the length of the Spline
- Division and multiplication nodes calculate the distance along the spline at which to place each actor
- Get Location at Distance Along Spline gets the specific location on spline at the calculated distance
- Make Transform constructs a transform for the actor
- Spawn Actor spawns the blueprint actor at the transform