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"

Destroy an actor with event hit

Hello everybody.

I would like to create a script with blueprints that destroys, we can also say who removes an actor from the scene.

This actor is a simple actor blueprint and I would like with "event hit" attached to the blueprint of my character that the actor blueprints disappears from the screen (so the node "destroy actor" it seems to me). I can not use the "Actorbeginoverlap event" because I have already used it for another collision with the same actor.

Thanks again for help, it will be precious to me.

Product Version: UE 4.19
Tags:
more ▼

asked May 28 '18 at 04:03 PM in Blueprint Scripting

avatar image

Thiénos
1 2 4

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

1 answer: sort voted first

"I can not use the "Actorbeginoverlap event" because I have already used it for another collision with the same actor."

Why not? You can drag as many "==" nodes or casts from the "Other Actor" of the "Event ActorBeginOverlap" you want.

For example, if you drag from the execution pin of the "Event Hit" node and type "Destroy Actor", you get what you want (leave the target as "Self", so it destroys the blueprint itself along with any component it may have). Maybe run it through a Branch if you need it to only be destroyed when someone in particular hits it. Something like this:

alt text

This will destroy the blueprint only when the player pawn (in my case) hits it. Note: "hit" in UE4 means bumping into it.

screenshot.png (48.3 kB)
more ▼

answered May 28 '18 at 05:16 PM

avatar image

Andrei Despinoiu
270 4 9 12

avatar image Thiénos May 28 '18 at 05:37 PM

Thank you for your answer. But i don't used your script because my "event hit" doesn't work and i don't know why so i found a solution.

(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