Garry's Mod Wiki

Revision Difference

Entity:ObjectCaps#518313

<function name="ObjectCaps" parent="Entity" type="classfunc"> <description> Returns the entity's capabilities as a bitfield.&amp;lt;br&amp;gt; Returns the entity's capabilities as a bitfield.&lt;br&gt; 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](https://github.com/ValveSoftware/source-sdk-2013/blob/55ed12f8d1eb6887d348be03aee5573d44177ffb/mp/src/game/shared/baseentity_shared.h#L21-L38).</note> </description> <realm>Shared</realm> <rets> <ret name="" type="number">The bitfield, a combination of the [FCAP_](https://github.com/ValveSoftware/source-sdk-2013/blob/55ed12f8d1eb6887d348be03aee5573d44177ffb/mp/src/game/shared/baseentity_shared.h#L21-L38) flags.</ret> </rets> </function>