http://puu.sh/8VT1o.png
I am trying to execute a function when player collides with anything EXCEPT floor, but it isn’t working. Blueprint is shown above.
floor is a static mesh called floor. This blueprint is causing function to execute whenever I collide with anything, including floor.
What am I doing wrong? I’ve tried all 3 of MyComp, Comp, OtherComp nodes but it doesn’t work.
AnxGotta
(AnxGotta)
May 22, 2014, 3:08am
2
I would guess that you have your collision channels set incorrectly.
Try looking at this link where they explain how to get specific collisions using collision channels.
UE Collision Responses
I may have misread your question… below info might not be relevant
Your player has to “Block” channel that static mesh belongs to while your static mesh has to “Block” channel your player belongs to. Then you have to check box indicating that you want to “Generate Hit Events”.
same works for “Overlap” events and collisions.
Bohrium
(Bohrium)
May 22, 2014, 10:08am
3
You could replace floor mesh with a blueprint that has just mesh in it. Then check whether object you hit is of the “floor” class or not.
Hey,
If suggestions below don’t help, please attach some images of what your collision settings look like for your floor and your player character. Thanks!