Enum FuncButton.SpawnFlag ​
Namespace: ValveResourceFormat.Renderer.Entities
Assembly: Renderer.dll
What a func_button's spawnflags mean.
csharp
[Flags]
public enum FuncButton.SpawnFlag : uintFields ​
DontMove = 1
Stays where it is when pressed, going through the motions without travelling.
StartsDisabled = 2
Spawns disabled, which only stops it being used.
Toggle = 32
Stays in once pressed, and a second press brings it back out.
TouchActivates = 256
Pressed by the player walking into it.
DamageActivates = 512
Pressed by taking damage.
UseActivates = 1024
Pressed by the player's use.
StartsLocked = 2048
Spawns locked.
Sparks = 4096
Sparks every so often while out. The same bit also silences the locked and unlocked sounds, as the engine tests it for those without regard to what it means on a button.
NonSolid = 16384
Nothing collides with it.

