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 keep track of enemy death


I am trying to set up a spawning wave system and in order do to that I would need to set up a system that keep track of the number of death of enemies. So far I have a system that work using integers and implementing the integer (+1 )everytime an enemy dies.

The system is based of the toturial to spawn. - I have one spawner with a custom event called spawning. It has a timer by function executing the spawning function and spawning ai at a location with a define number of enemies. - The game mode (event begin play) execute a function getting all the spawner and telling them to execute the function spawning with a timer - The ai character calculates damages and fires an death count with an integer created inside the game mode and implements it - The game mode check if this number of death equals number of enemies and if yes - will fire second wave.

I am wondering if there is a better way to go using arrays to keep track of number of death. I tried to use get actors from class - length - remove from index but did not seem to work.

If anyone has done that before or knows a better way to do that is modular and easy to use for waves?

Thanks again

here are the screenshots

Product Version: UE 4.10
more ▼

asked Sep 11 '16 at 04:11 PM in Blueprint Scripting

avatar image

Alain Marchino
6 1 2 2

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

0 answers: sort voted first
Be the first one to answer this question
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