Is it possible to spawn a random, pre-built house at a fixed location in game?

Is it possible? I want to make some place reserved for a house and spawn one from a set of possible houses when the map loads.

How do I do it?

Thanks in advance.

It’s possible.

That’s the only question here and you didn’t ask for any clarifications…

If the only thing you want to do is change mesh and not really generate map you should simply set one of many meshes in construction script.

If you want to keep your levels easily “modifiable” look into level streaming. That way you can keep your procedual parts seperate but have clean “design” workspace.

I thought the “how” was implied. Aren’t contruction scripts done in compilation time? I want to make the house random everytime the player starts a game. I’ve seen ways to spawn some meshes at random, but they all rely on spawning triangles/squares with known vertices and I don’t think its practical to get every vertex of a house and coding them. Thanks.

Construction script is called every time you move actor or change property, as far as i know.

But yeah, it probably won’t work for the case where you need to spawn random mesh every time game begins. You should change mesh during BeginPlay event then. Should work as intended.

Regards.