From Garry's Mod
Revision as of 15:45, 20 August 2019 by Robotboy655
This does not work with SWEPs or Nextbots.
Issue Tracker: #3269
Prints 'Hello, World!' in console and sleeps for a second.
function ENT:Think() print("Hello, World!") self:NextThink( CurTime() + 1 ) return true -- Note: You need to return true to override the default next think time end
Hello, World! every second the entity exists in the world.