Entity/SetUseType

From Garry's Mod
Jump to: navigation, search
 Entity:SetUseType( )

Contents

Description

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

Arguments

number useType

The use type to apply to the entity. Uses _USE Enums.

Examples

Example

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

Entity:SetUseType( SIMPLE_USE )


Personal tools
Navigation