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 have it so when enemies are killed, their "bodies" remain on the ground.

I have a made a simple sprite that can look at my player, and take damage. However when the enemy takes damage until it dies, its actor is destroyed. I would like to know what I could go about doing to replace the actor destroyed, or adding something else to it that can bring up my "dead" sprite, through an animation as well. It is also worth mentioning that these enemy sprites are in a 3D fps style game, and work with the billboard component. I am sorry if my question is too broad.

Product Version: UE 4.9
more ▼

asked Oct 21 '15 at 06:08 AM in Using UE4

avatar image

6 1 1 1

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

1 answer: sort voted first

Why not have the death animation display, and set up a blueprint to create a static actor to take the location and direction of the first actor before it's destroyed?

Also, I would think you could set the original actor to not be destroyed on 'death' (by that, I mean health <= 0). You could offset the health displayed (if it's even displayed at all) by 1, so that it's health can't be dropped below 1 and won't automatically be destroyed. Then just queue up the death animation once this happens, and destroy the actor manually whenever you wish.

Just theoretical stuff, I'm not in a position to give advice with my level of expertise, but I'm sure any response would be better than none...

more ▼

answered Oct 21 '15 at 06:25 AM

avatar image

1 2 3

avatar image 1999 Oct 22 '15 at 06:50 AM

If you are using C++ then you need to if destroy the player, or you can use blueprints.

(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