Garry's Mod Wiki

Garry's Mod Wiki

  number Entity:GetSpawnFlags()

Description

Returns the bitwise spawn flags used by the entity. These can be set by Entity:SetKeyValue.

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

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...