Entity/ObjectCaps

From Garry's Mod
Revision as of 17:57, 28 April 2016 by Shendow (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 Entity:ObjectCaps( )

Description

Returns the entity's capabilities as a bitfield.
In the engine this function is mostly used to check the use type, the save/restore system and level transitions flags.

Even though the function is defined shared, it is not guaranteed to return the same value across states.

NOTE

The enums for this are not currently implemented in Lua, however you can access the defines here.

Returns

number

The bitfield, a combination of the FCAP_ flags.
Personal tools
Navigation