SHARE
TWEET

Untitled

a guest Jun 19th, 2017 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. timer.Create("SleepPenetratingPhysics", 0.1, 0, function()
  2.     for key, entity in pairs(ents.GetAll()) do
  3.         local phys = entity:GetPhysicsObject()
  4.        
  5.         if IsValid(phys) and phys:IsPenetrating() then
  6.             phys:Sleep()
  7.         end
  8.     end
  9. end)
RAW Paste Data
Top