Entity:HasSpawnFlags
Description
Returns whether this entity has the specified spawnflags bits set.
Arguments
Returns
Example
As seen in sandbox's PhysgunPickup hook.
function GM:PhysgunPickup( ply, ent )
-- Don't move physboxes if the mapper logic says no
if ( ent:GetClass() == "func_physbox" && ent:HasSpawnFlags( SF_PHYSBOX_MOTIONDISABLED ) ) then return false end
return true
end