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"

Trouble with Box Collision and Damage management

I'm working on Paper2D now, and i've made an Enemy Actor with a big Collision Box, that makes him chase the Player when it overlaps, the thing is, the player is making damage to the enemy Actor using his Big Collision Box, i can set to ignore collision so he takes damage from his Capsule Collision, but that means he won't chase the Player.

Product Version: UE 4.20
Tags:
more ▼

asked Feb 11 '19 at 10:44 PM in Blueprint Scripting

avatar image

Ramirovski
1 1

avatar image Ramirovski Feb 11 '19 at 10:46 PM

.........

sight.png (319.9 kB)
sight2.png (428.7 kB)
sight3.png (734.7 kB)
sight4.png (671.5 kB)
(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

The simplest answer is just use your boolean "near" and a branch node after the damage event. Make sure "near" is true, if false, then the player only overlapped the "sight" box and should not damage the enemy.

more ▼

answered Feb 12 '19 at 02:07 AM

avatar image

Nebula Games Inc
4.5k 26 9 14

(comments are locked)
10|2000 characters needed characters left

It worked perfectly, thank you!

i've made a new Bool value (IsDamagable) for the Capsule Component

alt text

sight.png (221.6 kB)
more ▼

answered Feb 12 '19 at 01:38 PM

avatar image

Ramirovski
1 1

avatar image Nebula Games Inc Feb 12 '19 at 02:03 PM

No problem.

(comments are locked)
10|2000 characters needed characters left
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