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"

Procedural Map Generation - ConstructionScript or EventGraph?

Hi, I am creating a procedural map generator for a Turn-Based strategy game similar to civilization.

alt text

Should I put all this code in Construction or in the EventGraph? Can I cut and paste from Construction to EventGraph?

I have been creating the generator in construction since that is generally what the procedural tutorials use, but I am not sure that is the best place for it since players will be choosing the map options and generating the map.

I know there is at least 1 node you can use in Event that you can't in Construction(Delay). Are there any other considerations such as nodes or performance that might cause me to prefer one over the other?

Product Version: Not Selected
more ▼

asked Apr 20 '14 at 05:07 AM in Blueprint Scripting

avatar image

1.8k 131 68 110

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

1 answer: sort voted first

Construction scripts are evaluated in the editor on creation time and do not do anything in game. The advantage is that you can create static actors with them, with no additional overhead as the scripts are run before building the level and nothing is evaluated during gameplay. On the other hand only a single result is "baked" into the level, so you can't change any parameters of the construction during gameplay.

In your case you want the player to have control over the generation while playing. This requires interaction during gameplay, so you have to use the EventGraph. This does mean some more overhead as you have to use dynamic objects and lighting, but that is inherent to creating a dynamic world.

more ▼

answered Apr 20 '14 at 08:23 AM

avatar image

913 26 21 56

(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