4.12.5 OnComponetHit undefined

I’m trying to use the OnComponentHit using 4.12.5, but when I write it in visual studio it’s underlined in red and says it’s undefined, also it doesn’t show up in the auto search as I’m typing it in

I know this is very late and this question is very vague, but in case this helps anyone:

Make sure you’re requesting for OnComponentHit inside of a UStaticMeshComponent or some child of it. If you are calling this within something like an Actor you need to reference the mesh that will do the collision (an Actor with nothing to collide with won’t get hit).

myMesh->OnComponentHit(...);