Entity:AddSpawnFlags
Recently Added
This was recently added in version (2024.12.04). It might only be available on the Dev Branch right now.
Description
Adds onto the current SpawnFlags of an Entity.
SpawnFlags can easily be found on https://developer.valvesoftware.com/wiki/.
See also Entity:RemoveSpawnFlags, Entity:SetSpawnFlags
Arguments
Example
When a turret Entity is created, it adds the Out of Ammo
SpawnFlag, therefore it doesn't have ammo.
Example
When a turret Entity is created, it adds the Out of Ammo
and Fast Retire
SpawnFlag, therefore it doesn't have ammo and it goes into idle state faster.