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 make enemy health, and how to deplete it

alt text

RIGHT this is my game. i have finally figured out how to make the player health (watched the video in youtube) and next i want to proceed making the enemy health. the enemy is the tank above. i am able to shoot left clicking and the bullets collide with the tank enemy. all i want now, is apart from making a boss health bar, make it so when he gets hit by the bullets, the health gets depleted. every little help from anyone counts. thank you for your attention. ADDDITIONAL INFORMATION: I am making a top down 2d shooter so i chose to start with twinstickshooter template instead of from scratch. its going well so far but when i do: cast to (character) it doesnt show cast to twinstickpawn. in youtube videos they use cast to firstpersoncharacter so i dont know why it wont cast to twinstickpawn and this makes me not be able to use most tutorials

Product Version: UE 4.10
print screen.png (1.0 MB)
more ▼

asked Jan 18 '16 at 12:24 PM in Blueprint Scripting

avatar image

86 18 23 26

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

1 answer: sort voted first

Hi GitGudGitRekt.

This is an example on how to work with the built in damage feature. In your case, Apply Damage runs on your weapon projectile and Event AnyDamage on the tank blueprint.

alt text

damage.png (165.5 kB)
more ▼

answered Jan 18 '16 at 12:40 PM

avatar image

475 25 8 30

avatar image quimnuss Sep 20 '17 at 06:53 PM

Could you clarify the end of your answer? Is the anydamage pipeline in the tank blueprint or just the event? And the applydamage pipeline you place it the weapon blueprint? why not both on the character (aka tank)? And shouldn't the applydamage be triggered only on contact with the character?

(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