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. 

How can i spawn an item multiple times within a "x" number of target point?

Hello,

I'm trying to get an item to spawn multiple time(let's say 6 time) but within a range of 12 different target point. Here is what i got so far... The problem is that when i hit begin play well most of the time the item do spawn but it spawns twice to the same target point... How can i make it so that it doesn't go more then once over a target point once a item is spwaned there.

Thank you! alt text

Product Version: UE 4.9
Tags:
more ▼

asked Nov 09 '15 at 12:34 AM in Blueprint Scripting

avatar image

Deathscyp
48 9 7 9

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

1 answer: sort voted first

alt text

Took me like twenty minutes to figure out. These blueprint arrays are terrible. Make sure you promote the array to a variable. If you pull off the set, even though you are not calling "Set array" again, for some reason it would still recreate the whole array for me even after removing an element. I tried removing by index thinking it would nudge every removed element over, but the spot was filled with nothing, delete slot index 4, index 4 still existed with nothing. The only thing I got to work was shuffle, it seemed after deleting the element and shuffling it filled all the holes. Things like this are way easier in code vs blueprints, but that's just my experience so far....

untitled.png (154.8 kB)
more ▼

answered Nov 09 '15 at 10:12 AM

avatar image

yulaw2k
68 7 9 15

avatar image yulaw2k Nov 09 '15 at 03:16 AM

Can you remove the target point from the array after getting it?

avatar image Deathscyp Nov 09 '15 at 06:40 AM

HMM no i tried that already.. unless I was doing it wrong i tried to put remove item from array or index.. both didn't work and i try putting it right after getting the target point or after the spawn actor... I'm sure its something simple I am just not seeing...:(:(

avatar image Deathscyp Nov 09 '15 at 07:23 PM

Omg! You are a god haha Thx a million that it works!:D

Ya I figured that something like promoting it to a variable would work but I didnt even see that shufle node for array!. Damn thx again!

(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