codeAPI Reference

EmitMode enum

calendar_today May 12, 2026 schedule ~1 min read person PatrickJr verified 50

EmitMode Enum

Controls how an emitter triggers when controlled via player input in s&box.

Values

Toggle

Press once to turn on, press again to turn off.

Hold

Emits only while the input is held down.

Usage

Used in EmitterEntity to determine whether the emitter toggles on/off with a press or emits continuously while held.

CSHARP
[Property, ClientEditable]
public EmitMode Mode { get; set; } = EmitMode.Toggle;

The mode affects how ClientInput is processed in IPlayerControllable.OnControl().

Location

File: d:\GitHubStuff\sandbox\code\Game\Entity\EmitterEntity.cs

Was this helpful?