Garry's Mod Wiki

Entity:ObjectCaps

number 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.

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

Returns

1 number
The bitfield, a combination of the FCAP_ flags.

Page Links


Special Pages


Wikis

?

Render Time: 120ms

DB GetPage 23
Generate Html 2
SaveChanges (1) 76
Render Body 0
Render Sidebar 16