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"

Need help with blueprints

Hey, so I'm currently working on a zombie wave game which has set spawn points for the enemies to spawn at, Currently I'm testing things and I'm only using one room and have no map, but I'm looking to add a map and I'm questioning how I could move or set new spawn points for the enemies depending where the player is on the map any help is much appreciated.

Product Version: UE 4.18
more ▼

asked Jul 29 '18 at 12:00 AM in Blueprint Scripting

avatar image

1 1

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

2 answers: sort voted first

Depending on what you want, you could either change the locations of your existing spawn points, or you could put spawn points throughout the map and only make the ones within a certain distance of the player active. It's hard to be more specific without knowing how you are setting things up.

more ▼

answered Jul 29 '18 at 03:27 AM

avatar image

61 2 6 7

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

Here few methods, more procedural or manually placed. Generally spawn point should be not visible for player, this is first.

In many games, you have placed manually spawn points (whatever they calling it) then game check, this is in right place (near player and not visible for player). If place is correct - it can spawn ai if necessary.

Also you can spawn and activate procedurally you spawn points in some distance from player, but this can be really hard coded and make bugs with spawns in undesirable places.

Here is great tutorial how L4D (and L4D2) spawn enemy (and not only, doc worth read anyway) https://steamcdn-a.akamaihd.net/apps/valve/2009/ai_systems_of_l4d_mike_booth.pdf

In short words how this system works in l4d (and many other games): 1. on design stage select areas where ai can spawn. You can place here spawn actor [S] or volume on bigger place - in this case you must later find random point to create here spawn actor [S]. 2. gameplay - if spawn is necessary, check all [S] point in desired distance from player - if any - go point 3 3. check that [S] point is visible for player. You can use traces - line or sphere. If not visible - you can spawn AI 4. spawn ai in selected [S] place

This is short idea how it should work. As I understand, you know how to do rest.

more ▼

answered Jul 29 '18 at 03:05 PM

avatar image

1.3k 24 30 53

(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