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 spawn an object after another?

Hello, I would like to know how to spawn an object seconds or should I say milliseconds after an object spawns. For example, right now I'm building a soccer a game and does not have actual "players" in it but basically what happens is that one soccer ball will spawn then another one should spawn after the first one if the user kicks the ball into the net or 0.5 seconds after the first one spawns. How actually is this done? And also i dont want exact location i want this randomly on the screen

Product Version: Not Selected
more ▼

asked Dec 18 '14 at 10:39 PM in Using UE4

avatar image

12 7 10 12

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

1 answer: sort voted first

there is "spawn actor from class" inside blueprint. When you select that node, you will se 3 inputs: 1. Class < This is what you want to spawn so you select your ball here 2. Spawn Transform < This is rotation, scale and location of object you want to spawn. So you can input node "Make transform" and put random nodes to "Make transform". 3. Spawn even if colliding < self explainatory, but in case you didn't understand it, if checked it will create a ball on top of player or other object, unselecting will only spawn balls on location where are no other objects. The output: Return value < This is your actor, you set variable here, so that you can destroy actor when it enters the net. Image below:

alt text

more ▼

answered Dec 19 '14 at 10:06 PM

avatar image

324 44 41 59

avatar image KareemTheGod Dec 19 '14 at 10:54 PM

You sir are brilliant i thank u for solving and taking the time for my problem THANK YOU

(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