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"

AnswerHub Maintenance

Background maintenance is scheduled to occur between 9 - 11am EDT on Tuesday, May 21. Site operation may be slower than normal during this time and a brief interruption in operation may be observed

Enemy Spawn System

I am working on a spawn system, I have it setup and right now a basic kill the pawn and respawn after a delay works. What I am trying to do now is setup special spawns. I want to only allow spawns on this spot if a certain enemy is not currently alive and if it has been recorded as having been killed. Then disable the same enemies' spawn point if the special spawn has spawned. I set up an actor BP with a capsule and created children from this. I created an array on the parent but when I call a getter on it, it does not show the contents on the children BP's. Another question is would it be better to do this strictly in the level BP. As of right now I can set any number of my spawn points and the work correctly independently of each other. I tried a get all actors of class and on the spawn I wanted I used a contains and I am not sure how to set the variable for the Item I am looking for, the variable is of the character class. Any help would be appreciated. If you need to see any of my BP's to help let me know.

Product Version: Not Selected
Tags:
more ▼

asked May 04 '15 at 11:56 PM in Blueprint Scripting

avatar image

Enabazle
15 4 5 5

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

1 answer: sort voted first

I created an array on the parent but when I call a getter on it, it does not show the contents on the children BP's.

I'm not sure what this means. Could you perhaps show the blueprint and explain what you're not seeing?

I wouldn't do it in the level blueprint. This is a good candidate for being a blueprint that can be placed in any level. I'd set it up basically like this:

  • Spawn point blueprint. Has an event that you can call to spawn the enemy. Has an actor variable for the spawned enemy. When it spawns an enemy, sets the actor variable to the newly spawned enemy actor.

  • Spawned enemy blueprint. Has a variable to keep track of the spawn point. When the spawner creates a spawned enemy, the spawner sets this variable to refer to the spawn point. When this enemy dies, the enemy uses this variable to tell the spawn point that it's allowed to spawn new enemies.

This would let you place spawn points that each have their own unique enemy spawned and will only be able to spawn enemies once the previous one has been destroyed. Actually triggering the spawn event (e.g. on a timer or trigger) could be achieved in the level blueprint or perhaps in a subclassed blueprint.

I hope that helps.

more ▼

answered May 05 '15 at 01:16 AM

avatar image

kurtrussellfanclub
431 19 14 36

(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