x

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"

How to generate cover points out of runtime

So I want to make a system in which the AI uses coverpoints, but I don't want to manually place. I have worked out a blueprint which does this in the construction script and creates Actorcomponents, however I would like to generate it once, like I click build and it also runs that script. Also how would I store this data after I ran the script so I can load it up once I load the map?

Any help would be apreciated.

-Erik

Product Version: UE 4.12
Tags:
more ▼

asked Sep 12 '16 at 03:58 PM in Using UE4

avatar image

erik321123
393 17 14 31

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

I figured it out myself:

I have a SaveGame file which stores a transform and an array of structs for my cover points. In the construction script of the cover I make a string which is an append of the Current level name and the self reference to string. I then check if this save slot already exists, if it does I check if the transform is equal to the saved transform, if it is I continue to load from the save game, if not I run my script to calculate everything, this also happens if the save slot doesnt exists.

-Erik

more ▼

answered Sep 18 '16 at 01:13 PM

avatar image

erik321123
393 17 14 31

(comments are locked)
10|2000 characters needed characters left
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