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.

Page Links


Special Pages


Wikis

?

Render Time: 73ms

DB GetPage 45
Generate Html 3
SaveChanges (1) 11
Render Body 0
Render Sidebar 12