Meshes with nodes/Blueprints in it

Hey, I’m trying to make a racing/piloting game where the player needs to obey traffic laws basically (It’s a driving school sim) and one of the “infractions” is going off the track/going up the sidewalk, so I’ve made a “BP_Road” in which it detects whenever the vehicle leaves it’s box collision and gives the infraction.

For some roads in the project, the best way to do them is with splines, to give a more “natural/Fluid” look to them but they only accept meshes.

Is there a way to put a blueprint “code” in a mesh or use an actor blueprint in a spline?

(Kinda new to UE)

Hey @LuhBonettoRD!

So you can simply use a static meshes here, and have them set to “Hidden in game → True.” You will want to use PLANES though, not box collision. You can make your own static mesh using a plane, and then open that mesh, give it collision, and set it to “Hidden in game” all on the static mesh itself.

Then, you can have the spline spawn these at a certain X position offset from the center of the spline.

Because the thing is, when you go from piece to piece of the road, it’ll trigger, as a box is 2D. Maybe use one on each side of the road/ one in the middle?

Hope that helps!