Entity:SetSpawnFlags
Description
Sets the SpawnFlags to set of an Entity
SpawnFlags can easily be found on https://developer.valvesoftware.com/wiki/.
See also Entity:RemoveSpawnFlags, Entity:AddSpawnFlags
Using SF Enumerations won't work, if this function is ran clientside due to the enumerations being defined only Serverside. Use the actual SpawnFlag number.
Arguments
Example
When a turret Entity is created, if it doesn't have the SpawnFlags Out of Ammo
and Fast Retire
, then it sets it's SpawnFlags to just them two.