Garry's Mod Wiki

_USE

Description

Enumerations used by Entity:SetUseType. Affects when ENTITY:Use is triggered.

Not to be confused with Enums/USE used for ENTITY:Use and others.

Values

CONTINUOUS_USE0Fire a USE_ON signal every tick as long as the player holds their use key and aims at the target.
ONOFF_USE1Fires a USE_ON signal when starting to use an entity, and a USE_OFF signal when letting go.

There is no guarantee to receive both ON and OFF signals. A signal will only be sent when pushing or letting go of the use key while actually aiming at the entity, so an ON signal might not be followed by an OFF signal if the player is aiming somewhere else when releasing the key, and similarly, an OFF signal may not be preceded by an ON signal if the player started aiming at the entity only after pressing the key.

Therefore, this method of input is unreliable and should not be used.

DIRECTIONAL_USE2Like a wheel turning.
SIMPLE_USE3Fire a USE_ON signal only once when player presses their use key while aiming at the target.

Page Links


Special Pages


Wikis

?

Render Time: 34ms

DB GetPage 3
Generate Html 5
SaveChanges 11
Render Body 0
Render Sidebar 13