From Garry's Mod
Revision as of 22:29, 26 July 2018 by Code gs
This does not work with SWEPs.
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.