I’d like to suspend physics simulation in every actor on a map. In the level blueprint I iterate through all the actors and if “IsSimulatingPhysics” then “SetSimulatePhysics” set to false. It compiles fine but at runtime I see a couple of
FMemberReference::ResolveMember (SleepPhysics) bSelfContext == true, but no scope supplied!
warnings and the blueprint execution stops. I’m not sure what is going on.
The “PhysicsBodies” variable is an array of StaticMeshActors.
Note that it does not handle other actor types like blueprints with one or more physics driven components.