OnHit is not working c++
I have been creating a level in where a door opens when the player character walks into it. I have set up a OnHit for the door, but when the character walks into it; it doesn't respond.
Here is my OnHit code, my character is called theWolfCharacter
asked May 13 '16 at 05:55 PM in C++ Programming
Your OnHit function will not be called because it is not bound to anything, you should rather override the NotifyHit function and do your logic in it. "Simulation Generates Hit Events" should not be neccessary as the character movement will trigger it anyways.
answered May 14 '16 at 12:28 PM
"Simulation Generates Hit Events" set to true under the collision tab in blueprint. Also, it might be a good idea to have a delegate going on the constructor.
answered May 14 '16 at 12:12 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here