Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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.

Product Version: Not Selected
more ▼

asked May 02 '14 at 06:17 AM in Blueprint Scripting

avatar image

16 2 3 7

avatar image ϽϽϽ May 02 '14 at 07:05 AM

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.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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.

more ▼

answered May 02 '14 at 06:44 AM

avatar image

1.6k 54 38 105

avatar image polar May 02 '14 at 03:39 PM

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.

avatar image BiggestSmile May 02 '14 at 05:12 PM

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.


(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question