How to pause physics simulation on the whole level?

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.

How do you iterate through all the actors in the scene? You stored them in an array? Can you post a screenshoot of your current blueprint?

The following implementation works for simulated static mesh actors:

http://zspline.net/temp/Clipboard%20Image%20(42).png

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.