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 get multiple enemy spawns

Hey guys!

I wanna know how to have multiple enemy spawns so i can improve my game!

Thanks in advance

Product Version: UE 4.13
more ▼

asked Sep 10 '16 at 09:28 PM in Blueprint Scripting

avatar image

0 1 3 3

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

1 answer: sort voted first

Write a loop that spawns an actor. Use the node SpawnActorFromClass.

Hope this helps.

more ▼

answered Sep 10 '16 at 09:30 PM

avatar image

2.7k 106 34 177

avatar image FakeStreamer Sep 10 '16 at 09:33 PM

I have a enemy spawner already but i mea on different spots so it doesn spawns random all over the map

avatar image FakeStreamer Sep 11 '16 at 02:46 AM

And what i mean is that there are spawning enemies in the lef corner and others in the right corner

avatar image NoobsDeSroobs Sep 11 '16 at 03:21 AM

Put two markers that act as your spawn points. Then simply spawn one team on one side and the other team at the other marker. You can do this in the level blueprint.

avatar image FakeStreamer Sep 11 '16 at 03:24 AM

I get what you mean but there aren't any teams. Just AI enemies. And markers? Do i have to change my whole enemy spawn script then?

avatar image NoobsDeSroobs Sep 11 '16 at 03:30 AM

Most likely not. What you need to do, however, is to place several markers. They can be anything. Decals, actors, bilboards, actors. Anything. You just need them to get their positions. Add them all to an array.

Then, when you want to spawn a character you randomly selects a spawnpoint or you select the next spawnpoint. Read that spawnpoint location(this is why you need these markers) and use the node SpawnActorOfClass to spawn them. For several, simply loop and spawn on each iteration.

avatar image FakeStreamer Sep 11 '16 at 03:36 AM

Got a Bp Screenshot or a blueprintue,com for me? Still new to all this one day i will understand!

avatar image FakeStreamer Sep 11 '16 at 05:00 AM

Cus i can see the Spawn actor from class and all that i placed 2 actors aswell but how do i use them with this involved already? https://gyazo.com/02f95fedf3528d016d7b8fe3026f0206

avatar image FakeStreamer Sep 11 '16 at 05:41 AM

Cus i dont get it ;/

avatar image Luos Sep 11 '16 at 11:56 AM

Dimitri, fellow dutchman here. Bro.

why not first follow a lot of ue4 tutorials online? There are tutorials for all kinds of games, survival games, pong, galaga, simple platformers, and more. You are asking a LOT of questions answered at least a dozen of times on the answerhub, forums, facebook groups, etc.. so instead of asking the same questions again, why not use google and look them up.

my advice: 1. Go to youtube & google. 2. find a lot of tutorials. 3. Follow them, as much as possible. even if its not instantly related to the game you want to make, it will teach you the basics and core mechanics of ue4. 4. ??? 5. Profit.

and while following these tutorials and you want to know what a node, element, object does, just google "UE4 topic item of topic" (example: UE4 cascade color over life)

When there are no proper results there, then fall back onto answer-hub and ask questions there.

avatar image FakeStreamer Sep 11 '16 at 02:40 PM

Cant find anything about multipkle enemy spawns bro

(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