Garry's Mod Wiki

Entity:SetUseType

Entity:SetUseType

  Entity:SetUseType( number useType )

Description

Sets the use type of an entity, affecting how often ENTITY:Use will be called for Lua entities.

Arguments

1 number useType
The use type to apply to the entity. Uses Enums/_USE.

Example

Makes the ENTITY:Use hook only get called once at every use.

Entity:SetUseType( SIMPLE_USE )

Special Pages


Wikis

?

Render Time: 20ms

DB GetPage 2
Generate Html 4
SaveChanges (1) 6
Render Body 0
Render Sidebar 6