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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How to make deathcounter?

I'm trying to create a simple deathcounter of my AI. The question is where i can store my variable Deathcount and how i can increment it by killing enemies? Sorry for bad english.

Product Version: Not Selected
Tags:
more ▼

asked Feb 27 '15 at 05:00 PM in Using UE4

avatar image

Viosagmir
0 1 1

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

1 answer: sort voted first

There are quite a few ways of doing this and... the choice is yours!
One way would be to create an actor blueprint that sets up references to all of your AI actors by some method listed here
Another way would be to do this via the level blueprint. The way I would probably do it would be using a method where each AI instance I have references the actor in control or the level blueprint and upon death would let the tracking blueprint know that it died, increment a score, hook into a widget, or something similar. Hope that documentation helps!

more ▼

answered Feb 27 '15 at 05:17 PM

avatar image

Spiris
1.1k 40 33 76

avatar image Viosagmir Mar 03 '15 at 12:48 PM

Thank you very much, but I'm new in UE4. May you show me print screen of your method? Because i can't understand what you mean.

(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