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"

How do I cast to a empty actor to spawn an actor at the location?

Right now I am trying to make it so when my boss hits 2500/5000 health it will spawn additional targets around the map. I have three blueprints being the boss, the enemy to spawn, and the empty blueprint I put on the map. The issue is, I don't know how to cast this. This is my current set up:

alt text

Product Version: UE 4.21
Tags:
blueprint.png (50.7 kB)
more ▼

asked Feb 25 '19 at 01:49 PM in Blueprint Scripting

avatar image

Glowman0710
1

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

1 answer: sort voted first

Where is this located in your blueprints? It seems if the Boss health is the driving factor for spawning enemies you would want this in your Boss BP. If it is not in the Boss BP but somewhere else like the level BP you will need an event dispatcher to access the level BP from the Boss or some other method of giving the level BP a reference to your Boss health. If this is in the "empty blueprint" then you need a reference to that BP within your boss BP so the boss can tell this empty blueprint when to spawn the drones. And unless this is multiplayer you don't really need to use the "owner" pin. There are many ways to create the references. The below link has a bunch of tutorials about the basics of UE4 blueprints for beginners, #25 is dedicated to creating references which I think you will find useful.

https://www.youtube.com/playlist?list=PLyu-W38DvZhqByAoeva1jewB5s78zQHIy

more ▼

answered Feb 25 '19 at 05:18 PM

avatar image

Nebula Games Inc
5.4k 28 9 15

(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