Garry's Mod Wiki

Garry's Mod Wiki

  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 with _USE enum useType
The use type to apply to the entity. Uses _USE enum.

Example

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

Entity:SetUseType( SIMPLE_USE )

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 four times a day. Edits and history are not available.

Last Parsed: Loading...