Garry's Mod Wiki

Entity:SetNextClientThink

  Entity:SetNextClientThink( number nextthink )

Description

Sets the next time the clientside ENTITY:Think is called.

Arguments

1 number nextthink
The next time, relative to CurTime, to execute the ENTITY:Think clientside.

Example

Prints 'Hello, World!' in console and sleeps for a second.

function ENT:Think() print("Hello, World!") self:SetNextClientThink( CurTime() + 1 ) return true -- Note: You need to return true to override the default next think time end
Output: Hello, World! every second the entity exists in the world.