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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Enemy Portal Drag-Drop or Duplication not working

Hello everyone, I am having some problem with a simple thing. Although I have one working blueprint of an enemy portal( from where enemy will spawn), If I drag and drop it on the map second time, it's only spawning from the first one. To be more weird, if I keep only one portal (deleting the other) this it works. Below is the snaps of my Blueprints and other stuffs.:

  1. Playing Ground (with 2 enemy portals. Right is Dragged from Left)PlayGround

  2. Blueprint of Spawn Triggering Enemy Portal Event. On the game play beginning this calls another BP event. TriggerSpawning

  3. This is Enemy Portal's Blueprint which creates infinity wave on all enemies death. This is triggered by above.alt text

Now, to create 2 more spawning zones, I had to write 2 more actor classless of SpawnTriggering and EnemyPortal of exact same code just the variable name changed. Now my project owner doesn't like that and tasked me to do same thing with drag and dropped from first one. No extra BP of same kind and codes. I tried a lot but can't figured out as I totally noob in this Unreal. If someone please helps me showing what I have to modify in my BP with a graphical example, I will be greatly assisted.

Thanks in advance.

Product Version: UE 4.19
Tags:
2018-05-01.png (1.1 MB)
2018-05-01-1.png (520.3 kB)
2018-05-01-2.png (420.0 kB)
more ▼

asked May 01 '18 at 06:15 AM in Blueprint Scripting

avatar image

Gazzali Fahim
5 1 3 7

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

1 answer: sort voted first

On your second screenshot, you're simply finding the first Enemy Spawner that exists in the world, and setting that to a timer. In order for what you want to work, you have to do a for loop on the GetAllActorsOfClass result, and set the timer in each one of them ;)

more ▼

answered May 01 '18 at 08:49 AM

avatar image

goncasmage
897 12 14 24

avatar image Gazzali Fahim May 01 '18 at 06:17 PM

@goncasmage , Can you please show me that in a blueprint example? I've just started unreal and don't know how everything is done. Apologies.

avatar image goncasmage May 01 '18 at 07:13 PM

In your second screenshot, drag off of GetAllActorsOfClass and type ForEach, then select the first thing that shows up. Then, instead of using the Get node to call the EnemySpawn, use the element you get in the ForEach to call the EnemySpawn:

alt text

help.png (57.2 kB)
avatar image goncasmage May 01 '18 at 07:14 PM

Basically, you replace the Get node with a ForEachLoop node.

avatar image Gazzali Fahim May 02 '18 at 06:20 AM

@goncasmage , Thanks A lot!!! It worked like charm.. You just saved me and my day !! ☺️

(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