Download

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

Hey,

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:


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!