Entity:RemoveSpawnFlags
Recently Added
This was recently added in version (2024.12.04). It might only be available on the Dev Branch right now.
Description
Removes a SpawnFlag from the current SpawnFlags of an Entity.
SpawnFlags can easily be found on https://developer.valvesoftware.com/wiki/.
See also Entity:AddSpawnFlags, Entity:SetSpawnFlags
Arguments
Example
When a turret Entity is created, it removes the Out of Ammo
SpawnFlag, if it has it. Therefore it now has ammo.