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"

Bullet collison

Hi everyone. I was setting up a bullet when i noticed that it doesn't hit other players but it goes through them without dealing any damage. How can I fix that? Here's the images https://imgur.com/a/AtkVmRq Thank you in advance.

Product Version: UE 4.21
Tags:
more ▼

asked Jun 12 '19 at 12:21 PM in Blueprint Scripting

avatar image

David432
7 1 1 3

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

1 answer: sort voted first

Hi David,

I'm no expert but you might want to go with something like this. You can play around with the setting so the bullets will behave in a desired way. I always take a look at something that already exists inside one of the templates, this one comes from first person template.

alt text

projectile.png (30.7 kB)
more ▼

answered Jun 12 '19 at 12:36 PM

avatar image

DonBusso
805 4 5 7

avatar image David432 Jun 12 '19 at 01:34 PM

I tried playing with those settings but it's always the same. I enabled the line trace and it goes through players too

avatar image DonBusso Jun 12 '19 at 02:02 PM

That's so weird. Can I see collision for the target you're attacking? The above setting works for me, when I switch collision to your setting it does fly through the enemy target.

If you like we can link on discord. I could show you my entire setup for character and ai I'm attacking, including dealing damage.

avatar image David432 Jun 12 '19 at 04:28 PM

Here are some screenshots of the pawn and the bullet collisions. https://imgur.com/a/kJq40NI It's really weird, the player's a pawn and the bullet should block pawn's collisions

avatar image DonBusso Jun 12 '19 at 05:05 PM

I'm in a loss here. I'd say try creating a new actor of character class and see if the same thing is going to happen.

avatar image David432 Jun 12 '19 at 06:44 PM

ok so now the bullet has its collision working properly but the line trace still ignores the player

avatar image David432 Jun 12 '19 at 08:05 PM

I got it, I was using a "line trace by channel". Now I'm using "line trace for object" and it works. The only thing left to do is the bullet (actor) and damage (which works only when the server is shooting) replication

(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