check if Object/Actor has physics enabled in c++


So I’m trying to make a multiplayer FPS game. I’m following this tutorial by unreal engine:

And just been replacing all the ThirdPerson things with FirstPerson.

However, I hit a sort of obstacle when I get here:
Screenshot 2020-12-31 132837.png
If the projectile hits something that doesn’t have physics enabled, it crashes Unreal Engine. Is there a way to check if something has physics enabled in c++? How would I do that here? I know there’s a node for that in blueprints but I’m trying to mostly transition to c++, at least for this game. Thanks!

I’ve ran into something before where I had to check if something was simulating physics, try checking if OtherComp->IsSimulatingPhysics()