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"

Spawn Actors in Random Locations near Player

Hello I'm a beginner with Unreal Engine, currently taking a class in it. However the prof doesn't provide anywhere close to enough info to do labs, so I end up Googling everything. The problem is most of the things I see online are beyond complex compared to what I know, and I don't understand most of the things in the blueprints.

I am trying to spawn a HealthPack randomly in the map, later I would spawn several Actors on timers instead on in a loop like the Blueprints I have attached. alt text alt text

Issue: For some reason the HealthPacks spawn directly on my character (I think) and never appear in the game. If I remove "Destroy Actor" from the 2nd Blueprint then even though the HealthPacks (somehow) heal me 10x right at game start like before, but the 10 HealthPacks now appear in random locations in the map.

What am I doing wrong? How should I make it so that I don't get healed right at Play, and have the HealthPacks show up and get destroyed on touch?

Product Version: UE 4.19
healthpack-q1.png (160.7 kB)
healthpack-q2.png (125.7 kB)
more ▼

asked Oct 21 '18 at 03:33 AM in Blueprint Scripting

avatar image

9 1 1 4

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

1 answer: sort voted first

I think the problem is in your Overlap event. Try connecting the cast to the "other actor".

more ▼

answered Oct 21 '18 at 04:18 AM

avatar image

Kit Kat134
203 2 9 10

avatar image Kit Kat134 Oct 21 '18 at 04:18 AM

If it doesn't work, feel free to let me know, but that should solve it

avatar image Kiragami- Oct 21 '18 at 04:38 AM

Wow I can't believe I spent well over 8hrs for something that simple... Thank you!

avatar image Kit Kat134 Oct 21 '18 at 05:55 AM

No problem! Glad I could help :)

(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