Garry's Mod Wiki

Garry's Mod Wiki

  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.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...