How to suspend object's logic in BGE?
You can do it with logic bricks:



Explanation: This logic setting will suspend physics (Edit Object brick/Dynamics/Suspend Dynamics) at the beginning of the game (Delay = 0)
and restore it (Edit Object brick/Dynamics/Restore Dynamics) when an object with a player property is in a 5 blender units distance.