OnComponentBeginOverlap Function Not Firing

I have an OnComponentBeginOverlap Function that is attached to my main player actor in my game. It is supposed to fire when a certain characteristic of my player overlaps a trigger object. The function will fire in the editor regardless of the options I select for running my game. When I package the project (in either shipment or development) the function will not fire from the application. It will fire on my NPC opponent who has a very similar function.

Any other information you may need please feel free to ask. Thank you!

Hey crichard,

I have a few questions to help narrow your issue down:

  • Could you please provide a screenshot of your blueprint setup so I can replicate it on my end?
  • What platform are you packaging for (Windows, Mac, Android, etc)?
  • Do the overlap events work if you Play in Standalone?
  • Could you please provide the logs from your project’s Saved->Logs folder after running the packaged game?
  • Could you do me a favor and in Edit->Project Settings->Packaging, expand the Packaging category and look for Additional Asset Directories to Cook. Click the + button and add the folder that contains your actor that is not firing its overlap event just to make sure it’s being cooked.

Thanks

Hi Sean,

Thank you for getting back to me. I was actually in the process of getting all the information you requested and I found that I was creating a reference to my HUD blueprint twice which seemed to be overriding both HUD references. Once I removed that it fixed my problem and my game runs smoothly now. Thank you!