Garry's Mod Wiki

Entity:GetSpawnFlags

Description

Returns the bitwise spawn flags used by the entity.

Returns

1 number
The spawn flags of the entity, see SF_Enums.

Example

An alternative to Entity:HasSpawnFlags

local sf = ent:GetSpawnFlags() if( bit.band( sf, SF_PHYSPROP_PREVENT_PICKUP ) > 0 ) then print( "This prop cannot be picked up." ) end

Page Links


Special Pages


Wikis

?

Render Time: 34ms

DB GetPage 2
Generate Html 3
SaveChanges 15
Render Body 0
Render Sidebar 12