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"

Ending enemy collision volume after AI death

Hey everyone!

First time posting a question for me, so forgive me if this was already answered somewhere else...

I have enemies in my prototype that damage the player via a collision volume in front of the enemy's actor. this works fine, except it damages the player if walked over after the enemy is killed. I know where in my enemy character blueprint to enter a function to stop the collision, I just don't know what function or event I would need to utilize.alt text

I would like to insert this functionality right before the AI loses control. I am new to blueprint, so any and all help would be really great. Cheers!

Product Version: UE 4.20
Tags:
halp-plox-1.jpg (403.8 kB)
more ▼

asked Aug 18 '18 at 03:20 PM in Blueprint Scripting

avatar image

T0m Servo
1 1

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

1 answer: sort voted first

Lots of ways you could do it - add a boolean variable bIsDead and branch on it within the function that either calls or handles Apply Damage, or do similar with a Gate and on death, close the Gate. those are the first two that come to mind. You could also disable overlap events on the volume. lots of ways

more ▼

answered Aug 18 '18 at 03:50 PM

avatar image

mightyenigma
3.8k 18 20 20

avatar image T0m Servo Aug 18 '18 at 04:12 PM

Ok, this sounds like what I am looking for! first off, thanks for the reply!

I have the nodes from the image all set up after an isdead boolean property, so I guess I would need to disable overlap events after death? how exactly would an individual go about doing that in the event graph?

avatar image mightyenigma Dec 10 '18 at 09:34 PM

Select the capsule in the top left pane, then right-click on the event graph to make a reference node to the capsule, then pull a wire out of it and in the popup menu, choose "Set Generates Overlap Events". I think that will work. Sorry for the delay - a lot of posts got buried in a flood of too many notifications (I recently turned off a ton of AnswerHub notifications so I am finally catching up with it).

(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